diff --git a/.config/zsh/zoxide.zsh b/.config/zsh/zoxide.zsh index 786b78c..a50e32c 100644 --- a/.config/zsh/zoxide.zsh +++ b/.config/zsh/zoxide.zsh @@ -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 +}