Check if zoxide is installed in shell plugins

This commit is contained in:
Ajeet D'Souza 2021-06-14 01:57:45 +05:30
parent a95e3c7207
commit 273b6ed1cf
2 changed files with 10 additions and 2 deletions

View File

@ -1 +1,5 @@
zoxide init fish | source
if command -sq zoxide
zoxide init fish | source
else
echo 'zoxide: command not found, please install it from https://github.com/ajeetdsouza/zoxide'
end

View File

@ -1 +1,5 @@
eval "$(zoxide init zsh)"
if (( $+commands[zoxide] )); then
eval "$(zoxide init zsh)"
else
echo 'zoxide: command not found, please install it from https://github.com/ajeetdsouza/zoxide'
fi