[misc] skip installation if fzf already installed

This commit is contained in:
Klesh Wong 2020-10-29 15:45:14 +08:00
parent 931319e839
commit 0aafee6d9d

View File

@ -13,7 +13,7 @@ case "$PM" in
sudo apt install fish libnotify-bin xdotool -y
if apt show fzf &>/dev/null; then
sudo apt install fzf
else
elif ! which fzf &>/dev/null; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
fi