Only use fzf plugin if command is present
This commit is contained in:
parent
23fca4d56c
commit
60b32b776d
2
.zshrc
2
.zshrc
@ -10,7 +10,6 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then
|
||||
|
||||
export plugins=(
|
||||
themes
|
||||
fzf
|
||||
git
|
||||
)
|
||||
|
||||
@ -19,6 +18,7 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then
|
||||
plugins+=(tmux)
|
||||
fi
|
||||
|
||||
if [[ $(command -v fzf) ]]; then plugins+=(fzf); fi
|
||||
|
||||
if [[ $(command -v systemctl) ]]; then
|
||||
plugins+=(systemd)
|
||||
|
Loading…
Reference in New Issue
Block a user