mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 12:46:39 +00:00
feat(shell): add zoxide as cd replacement
This commit is contained in:
11
zsh/zoxide.zsh
Normal file
11
zsh/zoxide.zsh
Normal 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
|
||||
Reference in New Issue
Block a user