updates: cleanup
This commit is contained in:
@@ -21,8 +21,7 @@ The `bash` utilities come directly from the [git source contrib](https://github.
|
||||
Clone the repository
|
||||
|
||||
```
|
||||
mkdir -p ~/GitHub/rkiel
|
||||
cd ~/GitHub/rkiel
|
||||
mkdir -p ~/GitHub/rkiel && cd $_
|
||||
git clone https://github.com/rkiel/git-utilities.git
|
||||
```
|
||||
|
||||
@@ -30,7 +29,7 @@ To update your `.bash_profile` and `.bashrc`.
|
||||
|
||||
```
|
||||
cd ~/GitHub/rkiel/git-utilities
|
||||
./install/bin/setup --user rkiel
|
||||
./install/bin/setup --user $USER
|
||||
```
|
||||
|
||||
## Documention
|
||||
|
||||
@@ -45,27 +45,21 @@ module Setup
|
||||
|
||||
File.open("#{ENV['HOME']}/.bash_profile", "a") do |f|
|
||||
f.puts
|
||||
f.puts '#############################################################'
|
||||
f.puts "# added by ~/GitHub/rkiel/git-utilities/install/bin/setup"
|
||||
f.puts '#############################################################'
|
||||
f.puts 'export GIT_UTILITIES_BIN="~/GitHub/rkiel/git-utilities/bin"'
|
||||
f.puts 'export PATH=${GIT_UTILITIES_BIN}:$PATH'
|
||||
f.puts 'source ~/GitHub/rkiel/git-utilities/dotfiles/git-completion.bash'
|
||||
f.puts 'source ~/GitHub/rkiel/git-utilities/dotfiles/git-prompt.sh'
|
||||
f.puts "export FEATURE_USER=#{options.user}" if options.user
|
||||
f.puts "export PS1='#{Setup::Prompt.new.generate(options)}'"
|
||||
f.puts '#############################################################'
|
||||
f.puts
|
||||
end
|
||||
|
||||
|
||||
File.open("#{ENV['HOME']}/.bashrc", "a") do |f|
|
||||
f.puts
|
||||
f.puts '#############################################################'
|
||||
f.puts "# added by ~/GitHub/rkiel/git-utilities/install/bin/setup"
|
||||
f.puts '#############################################################'
|
||||
f.puts 'source ~/GitHub/rkiel/git-utilities/dotfiles/bashrc'
|
||||
f.puts '#############################################################'
|
||||
f.puts
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user