Skip to content

Commit 278414f

Browse files
committed
Use $HOME over ~.
1 parent 175dab0 commit 278414f

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## HEAD
4+
5+
- Use $HOME over ~.
6+
37
## 0.1.0
48

59
- Initial release.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ $ wget https://git.io/vJAz3 -O - | sh
4040
```tmux
4141
# rxrc/tmuxrc
4242

43-
if-shell "test -f ~/.tmux/plugins/tmuxrc/plugins.conf" "source ~/.tmux/plugins/tmuxrc/plugins.conf"
44-
if-shell "test ! -f ~/.tmux/plugins/tmuxrc/plugins.conf" "set -g @tpm_plugins 'tmux-plugins/tpm rxrc/tmuxrc'"
45-
run-shell '~/.tmux/plugins/tpm/tpm'
46-
if-shell "test -f ~/.tmuxline.conf" "source ~/.tmuxline.conf"
43+
if-shell "test -f $HOME/.tmux/plugins/tmuxrc/plugins.conf" "source $HOME/.tmux/plugins/tmuxrc/plugins.conf"
44+
if-shell "test ! -f $HOME/.tmux/plugins/tmuxrc/plugins.conf" "set -g @tpm_plugins 'tmux-plugins/tpm rxrc/tmuxrc'"
45+
run-shell '$HOME/.tmux/plugins/tpm/tpm'
46+
if-shell "test -f $HOME/.tmuxline.conf" "source $HOME/.tmuxline.conf"
4747
```
4848

4949
and run this to install

install.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,49 +15,49 @@ command -v git >/dev/null 2>&1 \
1515
exit 1
1616
}
1717

18-
if [ -d ~/.tmux/plugins/tpm ]; then
18+
if [ -d $HOME/.tmux/plugins/tpm ]; then
1919
echo -e "\033[32m ✔ Found ❰ tpm ❱ \033[0m"
2020
else
2121
echo -e " ➤ Installing ❰ tpm ❱ \033[0m"
2222

2323
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
2525

2626
echo -e "\033[32m ✔ Installed ❰ tpm ❱ \033[0m"
2727
fi
2828

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);
3131
if [ "$TMUXRC_LINE" != '# rxrc/tmuxrc' ]; then
3232
echo -e " ➤ Exists ❰ ~/.tmux.conf ❱ \033[0m"
3333

34-
mv ~/.tmux.conf ~/.tmux.conf.preinstall
34+
mv $HOME/.tmux.conf $HOME/.tmux.conf.preinstall
3535

3636
echo -e "\033[32m ✔ Moved to ❰ ~/.tmux.conf.preinstall ❱ \033[0m"
3737
else
38-
rm ~/.tmux.conf
38+
rm $HOME/.tmux.conf
3939
fi
4040
fi
4141

4242
echo -e " ➤ Installing ❰ ~/.tmux.conf ❱ \033[0m"
4343

44-
tee ~/.tmux.conf >/dev/null <<EOF
44+
tee $HOME/.tmux.conf >/dev/null <<EOF
4545
# rxrc/tmuxrc
4646
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"
5151
EOF
5252

5353
echo -e "\033[32m ✔ Installed ❰ ~/.tmux.conf ❱ \033[0m"
5454

5555
echo -e " ➤ Run ❰ Install Plugins ❱ \033[0m"
5656

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
6161

6262
echo -e "\033[32m ✔ Completed ❰ Install Plugins ❱ \033[0m"
6363

0 commit comments

Comments
 (0)