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

View File

@@ -21,3 +21,4 @@ shellcheck = "latest"
shfmt = "latest"
starship = "latest"
terraform = "latest"
zoxide = "latest"

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

1
zshrc
View File

@@ -162,6 +162,7 @@ source "$DOTZSH/less.zsh"
source "$DOTZSH/neovim.zsh"
source "$DOTZSH/nix.zsh"
source "$DOTZSH/tmux.zsh"
source "$DOTZSH/zoxide.zsh"
# Development
source "$DOTZSH/containers.zsh"