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=(
|
export plugins=(
|
||||||
themes
|
themes
|
||||||
fzf
|
|
||||||
git
|
git
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -19,6 +18,7 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then
|
|||||||
plugins+=(tmux)
|
plugins+=(tmux)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $(command -v fzf) ]]; then plugins+=(fzf); fi
|
||||||
|
|
||||||
if [[ $(command -v systemctl) ]]; then
|
if [[ $(command -v systemctl) ]]; then
|
||||||
plugins+=(systemd)
|
plugins+=(systemd)
|
||||||
|
Loading…
Reference in New Issue
Block a user