mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 04:46:41 +00:00
feat(shell): add zoxide as cd replacement
This commit is contained in:
@@ -21,3 +21,4 @@ shellcheck = "latest"
|
||||
shfmt = "latest"
|
||||
starship = "latest"
|
||||
terraform = "latest"
|
||||
zoxide = "latest"
|
||||
|
||||
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