Make sure zoxide is setup before using it for cd

This commit is contained in:
Napsack Builder
2025-06-30 09:36:41 -04:00
parent 2634a4ade4
commit 854eafde26

View File

@@ -1 +1,8 @@
alias cd=z
# alias cd=z
cd() {
if whence -w z >/dev/null 2>&1; then # Does a command called 'z' exist right now?
z "$@" # use it
else
builtin cd "$@" # quiet fallback
fi
}