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:
js0ny 2025-02-23 20:31:13 +00:00
parent 8aa9daf582
commit f3333d2292
7 changed files with 470 additions and 479 deletions

View file

@ -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 .."