mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2025-07-07 13:35:03 +00:00
Check if zoxide is installed in shell plugins
This commit is contained in:
parent
a95e3c7207
commit
273b6ed1cf
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue