mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
fix(posix-shell): fix on checking command exist
Use `command -v $CMD >/dev/null 2>&1` to check if command exist
This commit is contained in:
parent
8aa9daf582
commit
f3333d2292
7 changed files with 470 additions and 479 deletions
|
|
@ -29,7 +29,7 @@ if [ "$(uname)" = "Darwin" ]; then
|
|||
fi
|
||||
|
||||
|
||||
if command -v zoxide > /dev/null ; then
|
||||
if command -v zoxide >/dev/null 2>&1; then
|
||||
eval "$(zoxide init zsh)"
|
||||
# Relative navigation #
|
||||
alias ..="z .."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue