Skip to content

Commit ea09a76

Browse files
committed
Use command over hash in install.sh.
1 parent ca8f097 commit ea09a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fi
77

88
echo -e "\033[32m➤ Installing! \033[0m"
99

10-
hash git >/dev/null 2>&1 \
10+
command -v git >/dev/null 2>&1 \
1111
&& echo -e "\033[32m ✔ Found ❰ Git ❱ \033[0m" \
1212
|| {
1313
echo -e "\033[31m ✘ Missing ❰ Git ❱ \033[0m"
@@ -20,7 +20,7 @@ if [ -d ~/.tmux/plugins/tpm ]; then
2020
else
2121
echo -e " ➤ Installing ❰ tpm ❱ \033[0m"
2222

23-
hash git >/dev/null 2>&1 && \
23+
command -v git >/dev/null 2>&1 && \
2424
env git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm >/dev/null 2>&1
2525

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

0 commit comments

Comments
 (0)