mirror of
https://github.com/tedkulp/dotfiles
synced 2026-03-04 13:29:57 -05:00
Make sure zoxide is setup before using it for cd
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user