Skip to content

Commit 637a4be

Browse files
committed
Use $HOME over ~.
1 parent 2cee20d commit 637a4be

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

bootstrap.zsh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,48 @@ function puts () {
66
echo "\n-- [$1] $2"
77
}
88

9-
if ! [[ -e ~/.gemrc ]]; then
10-
echo 'gem: --no-document' > ~/.gemrc
9+
if ! [[ -e $HOME/.gemrc ]]; then
10+
echo 'gem: --no-document' > $HOME/.gemrc
1111
puts 'Created' '~/.gemrc'
1212
fi
1313

14-
if ! [[ -d ~/.zgen.zsh ]]; then
14+
if ! [[ -d $HOME/.zgen.zsh ]]; then
1515
puts 'Installing' 'zshrc'
1616
curl -L https://rc.evansosenko.com/zshrc/install.sh | sh
1717
fi
1818

19-
if [[ -d ~/.zgen.zsh ]]; then
19+
if [[ -d $HOME/.zgen.zsh ]]; then
2020
puts 'Installed' 'zshrc'
2121
fi
2222

23-
if ! [[ -d ~/.rbenv ]]; then
23+
if ! [[ -d $HOME/.rbenv ]]; then
2424
puts 'Installing' 'rbenv'
25-
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
25+
git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv
2626
fi
2727

28-
if [[ -d ~/.rbenv ]]; then
28+
if [[ -d $HOME/.rbenv ]]; then
2929
puts 'Installed' 'rbenv'
3030
fi
3131

32-
if ! [[ -d ~/.rbenv/plugins/ruby-build ]]; then
32+
if ! [[ -d $HOME/.rbenv/plugins/ruby-build ]]; then
3333
puts 'Installing' 'ruby-build'
34-
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
34+
git clone https://github.com/sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build
3535
fi
3636

37-
if [[ -d ~/.rbenv/plugins/ruby-build ]]; then
37+
if [[ -d $HOME/.rbenv/plugins/ruby-build ]]; then
3838
puts 'Installed' 'ruby-build'
3939
fi
4040

41-
if ! [[ -d ~/.vim/bundle/vimrc ]]; then
41+
if ! [[ -d $HOME/.vim/bundle/vimrc ]]; then
4242
puts 'Installing' 'vimrc'
4343
curl -L https://rc.evansosenko.com/vimrc/install.sh | sh
4444
fi
4545

46-
if [[ -d ~/.vim/bundle/vimrc ]]; then
46+
if [[ -d $HOME/.vim/bundle/vimrc ]]; then
4747
puts 'Installed' 'vimrc'
4848
fi
4949

50-
if ! [[ -d ~/.tmux/plugins/tmuxrc ]]; then
50+
if ! [[ -d $HOME/.tmux/plugins/tmuxrc ]]; then
5151
if [[ -n "$TMUX" ]]; then
5252
puts 'Installing' 'tmuxrc'
5353
curl -L https://rc.evansosenko.com/tmuxrc/install.sh | sh
@@ -57,27 +57,27 @@ if ! [[ -d ~/.tmux/plugins/tmuxrc ]]; then
5757
fi
5858
fi
5959

60-
if [[ -d ~/.tmux/plugins/tmuxrc ]]; then
60+
if [[ -d $HOME/.tmux/plugins/tmuxrc ]]; then
6161
puts 'Installed' 'tmuxrc'
6262
fi
6363

64-
if ! [[ -e ~/.promptline.zsh ]]; then
65-
if [[ -d ~/.vim/bundle/promptline.vim ]]; then
64+
if ! [[ -e $HOME/.promptline.zsh ]]; then
65+
if [[ -d $HOME/.vim/bundle/promptline.vim ]]; then
6666
puts 'Note' 'To install promptline, open vim and run:'
6767
echo ":PromptlineSnapshot ~/.promptline.zsh"
6868
fi
6969
fi
7070

71-
if [[ -e ~/.promptline.zsh ]]; then
71+
if [[ -e $HOME/.promptline.zsh ]]; then
7272
puts 'Installed' 'promptline'
7373
fi
7474

75-
if ! [[ -e ~/.tmuxline.conf ]] then
75+
if ! [[ -e $HOME/.tmuxline.conf ]] then
7676
puts 'Note' 'To install tmuxline, while in a tmux session open vim and run:'
7777
echo ":TmuxlineSnapshot ~/.tmuxline.conf"
7878
fi
7979

80-
if [[ -e ~/.tmuxline.conf ]]; then
80+
if [[ -e $HOME/.tmuxline.conf ]]; then
8181
puts 'Installed' 'tmuxline'
8282
fi
8383

update.zsh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ function puts () {
66
echo "\n-- [$1] $2"
77
}
88

9-
if [[ -d ~/.zgen.zsh ]]; then
9+
if [[ -d $HOME/.zgen.zsh ]]; then
1010
puts 'Updating' 'zgen'
11-
cd ~/.zgen.zsh
11+
cd $HOME/.zgen.zsh
1212
git pull
1313
fi
1414

15-
if [[ -d ~/.rbenv ]]; then
15+
if [[ -d $HOME/.rbenv ]]; then
1616
puts 'Updating' 'rbenv'
17-
cd ~/.rbenv
17+
cd $HOME/.rbenv
1818
git pull
1919
fi
2020

21-
if [[ -d ~/.rbenv/plugins/ruby-build ]]; then
21+
if [[ -d $HOME/.rbenv/plugins/ruby-build ]]; then
2222
puts 'Updating' 'ruby-build'
23-
cd ~/.rbenv/plugins/ruby-build
23+
cd $HOME/.rbenv/plugins/ruby-build
2424
git pull
2525
fi
2626

27-
if [[ -e ~/.promptline.zsh ]]; then
27+
if [[ -e $HOME/.promptline.zsh ]]; then
2828
puts 'Note' 'To update promptline, open vim and run:'
2929
echo ":PromptlineSnapshot! ~/.promptline.zsh"
3030
fi
3131

32-
if [[ -e ~/.tmuxline.conf ]]; then
32+
if [[ -e $HOME/.tmuxline.conf ]]; then
3333
puts 'Note' 'To update tmuxline, while in a tmux session open vim and run:'
3434
echo ":TmuxlineSnapshot! ~/.tmuxline.conf"
3535
fi

0 commit comments

Comments
 (0)