@@ -6,48 +6,48 @@ function puts () {
6
6
echo " \n-- [$1 ] $2 "
7
7
}
8
8
9
- if ! [[ -e ~ /.gemrc ]]; then
10
- echo ' gem: --no-document' > ~ /.gemrc
9
+ if ! [[ -e $HOME /.gemrc ]]; then
10
+ echo ' gem: --no-document' > $HOME /.gemrc
11
11
puts ' Created' ' ~/.gemrc'
12
12
fi
13
13
14
- if ! [[ -d ~ /.zgen.zsh ]]; then
14
+ if ! [[ -d $HOME /.zgen.zsh ]]; then
15
15
puts ' Installing' ' zshrc'
16
16
curl -L https://rc.evansosenko.com/zshrc/install.sh | sh
17
17
fi
18
18
19
- if [[ -d ~ /.zgen.zsh ]]; then
19
+ if [[ -d $HOME /.zgen.zsh ]]; then
20
20
puts ' Installed' ' zshrc'
21
21
fi
22
22
23
- if ! [[ -d ~ /.rbenv ]]; then
23
+ if ! [[ -d $HOME /.rbenv ]]; then
24
24
puts ' Installing' ' rbenv'
25
- git clone https://github.com/sstephenson/rbenv.git ~ /.rbenv
25
+ git clone https://github.com/sstephenson/rbenv.git $HOME /.rbenv
26
26
fi
27
27
28
- if [[ -d ~ /.rbenv ]]; then
28
+ if [[ -d $HOME /.rbenv ]]; then
29
29
puts ' Installed' ' rbenv'
30
30
fi
31
31
32
- if ! [[ -d ~ /.rbenv/plugins/ruby-build ]]; then
32
+ if ! [[ -d $HOME /.rbenv/plugins/ruby-build ]]; then
33
33
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
35
35
fi
36
36
37
- if [[ -d ~ /.rbenv/plugins/ruby-build ]]; then
37
+ if [[ -d $HOME /.rbenv/plugins/ruby-build ]]; then
38
38
puts ' Installed' ' ruby-build'
39
39
fi
40
40
41
- if ! [[ -d ~ /.vim/bundle/vimrc ]]; then
41
+ if ! [[ -d $HOME /.vim/bundle/vimrc ]]; then
42
42
puts ' Installing' ' vimrc'
43
43
curl -L https://rc.evansosenko.com/vimrc/install.sh | sh
44
44
fi
45
45
46
- if [[ -d ~ /.vim/bundle/vimrc ]]; then
46
+ if [[ -d $HOME /.vim/bundle/vimrc ]]; then
47
47
puts ' Installed' ' vimrc'
48
48
fi
49
49
50
- if ! [[ -d ~ /.tmux/plugins/tmuxrc ]]; then
50
+ if ! [[ -d $HOME /.tmux/plugins/tmuxrc ]]; then
51
51
if [[ -n " $TMUX " ]]; then
52
52
puts ' Installing' ' tmuxrc'
53
53
curl -L https://rc.evansosenko.com/tmuxrc/install.sh | sh
@@ -57,27 +57,27 @@ if ! [[ -d ~/.tmux/plugins/tmuxrc ]]; then
57
57
fi
58
58
fi
59
59
60
- if [[ -d ~ /.tmux/plugins/tmuxrc ]]; then
60
+ if [[ -d $HOME /.tmux/plugins/tmuxrc ]]; then
61
61
puts ' Installed' ' tmuxrc'
62
62
fi
63
63
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
66
66
puts ' Note' ' To install promptline, open vim and run:'
67
67
echo " :PromptlineSnapshot ~/.promptline.zsh"
68
68
fi
69
69
fi
70
70
71
- if [[ -e ~ /.promptline.zsh ]]; then
71
+ if [[ -e $HOME /.promptline.zsh ]]; then
72
72
puts ' Installed' ' promptline'
73
73
fi
74
74
75
- if ! [[ -e ~ /.tmuxline.conf ]] then
75
+ if ! [[ -e $HOME /.tmuxline.conf ]] then
76
76
puts ' Note' ' To install tmuxline, while in a tmux session open vim and run:'
77
77
echo " :TmuxlineSnapshot ~/.tmuxline.conf"
78
78
fi
79
79
80
- if [[ -e ~ /.tmuxline.conf ]]; then
80
+ if [[ -e $HOME /.tmuxline.conf ]]; then
81
81
puts ' Installed' ' tmuxline'
82
82
fi
83
83
0 commit comments