feat(shell): add zoxide as cd replacement

This commit is contained in:
2024-02-19 00:47:30 +00:00
parent 4fb30f9288
commit e911f1ecb9
3 changed files with 13 additions and 0 deletions

11
zsh/zoxide.zsh Normal file
View File

@@ -0,0 +1,11 @@
#
# zoxide Setup
#
if command-exists zoxide; then
eval "$(zoxide init --cmd zox zsh)"
# Use functions to allow regular zsh completion for cd to work.
cd() { __zoxide_z "$@"; }
alias cdi='__zoxide_zi'
fi