@@ -15,49 +15,49 @@ command -v git >/dev/null 2>&1 \
15
15
exit 1
16
16
}
17
17
18
- if [ -d ~ /.tmux/plugins/tpm ]; then
18
+ if [ -d $HOME /.tmux/plugins/tpm ]; then
19
19
echo -e " \033[32m ✔ Found ❰ tpm ❱ \033[0m"
20
20
else
21
21
echo -e " ➤ Installing ❰ tpm ❱ \033[0m"
22
22
23
23
command -v git > /dev/null 2>&1 && \
24
- env git clone https://github.com/tmux-plugins/tpm.git ~ /.tmux/plugins/tpm > /dev/null 2>&1
24
+ env git clone https://github.com/tmux-plugins/tpm.git $HOME /.tmux/plugins/tpm > /dev/null 2>&1
25
25
26
26
echo -e " \033[32m ✔ Installed ❰ tpm ❱ \033[0m"
27
27
fi
28
28
29
- if [ -f ~ /.tmux.conf ] || [ -h ~ /.tmux.conf ]; then
30
- TMUXRC_LINE=$( head -n 1 ~ /.tmux.conf) ;
29
+ if [ -f $HOME /.tmux.conf ] || [ -h $HOME /.tmux.conf ]; then
30
+ TMUXRC_LINE=$( head -n 1 $HOME /.tmux.conf) ;
31
31
if [ " $TMUXRC_LINE " != ' # rxrc/tmuxrc' ]; then
32
32
echo -e " ➤ Exists ❰ ~/.tmux.conf ❱ \033[0m"
33
33
34
- mv ~ /.tmux.conf ~ /.tmux.conf.preinstall
34
+ mv $HOME /.tmux.conf $HOME /.tmux.conf.preinstall
35
35
36
36
echo -e " \033[32m ✔ Moved to ❰ ~/.tmux.conf.preinstall ❱ \033[0m"
37
37
else
38
- rm ~ /.tmux.conf
38
+ rm $HOME /.tmux.conf
39
39
fi
40
40
fi
41
41
42
42
echo -e " ➤ Installing ❰ ~/.tmux.conf ❱ \033[0m"
43
43
44
- tee ~ /.tmux.conf > /dev/null << EOF
44
+ tee $HOME /.tmux.conf > /dev/null << EOF
45
45
# rxrc/tmuxrc
46
46
47
- if-shell "test -f ~ /.tmux/plugins/tmuxrc/plugins.conf" "source ~ /.tmux/plugins/tmuxrc/plugins.conf"
48
- if-shell "test ! -f ~ /.tmux/plugins/tmuxrc/plugins.conf" "set -g @tpm_plugins 'tmux-plugins/tpm rxrc/tmuxrc'"
49
- run-shell '~ /.tmux/plugins/tpm/tpm'
50
- if-shell "test -f ~ /.tmuxline.conf" "source ~ /.tmuxline.conf"
47
+ if-shell "test -f \$ HOME /.tmux/plugins/tmuxrc/plugins.conf" "source \$ HOME /.tmux/plugins/tmuxrc/plugins.conf"
48
+ if-shell "test ! -f \$ HOME /.tmux/plugins/tmuxrc/plugins.conf" "set -g @tpm_plugins 'tmux-plugins/tpm rxrc/tmuxrc'"
49
+ run-shell '\$ HOME /.tmux/plugins/tpm/tpm'
50
+ if-shell "test -f \$ HOME /.tmuxline.conf" "source \$ HOME /.tmuxline.conf"
51
51
EOF
52
52
53
53
echo -e " \033[32m ✔ Installed ❰ ~/.tmux.conf ❱ \033[0m"
54
54
55
55
echo -e " ➤ Run ❰ Install Plugins ❱ \033[0m"
56
56
57
- sh ~ /.tmux/plugins/tpm/scripts/install_plugins.sh & > /dev/null
58
- sh ~ /.tmux/plugins/tpm/scripts/update_plugin.sh all & > /dev/null
59
- sh ~ /.tmux/plugins/tpm/scripts/install_plugins.sh & > /dev/null
60
- sh ~ /.tmux/plugins/tpm/scripts/update_plugin.sh all & > /dev/null
57
+ sh $HOME /.tmux/plugins/tpm/scripts/install_plugins.sh & > /dev/null
58
+ sh $HOME /.tmux/plugins/tpm/scripts/update_plugin.sh all & > /dev/null
59
+ sh $HOME /.tmux/plugins/tpm/scripts/install_plugins.sh & > /dev/null
60
+ sh $HOME /.tmux/plugins/tpm/scripts/update_plugin.sh all & > /dev/null
61
61
62
62
echo -e " \033[32m ✔ Completed ❰ Install Plugins ❱ \033[0m"
63
63
0 commit comments