mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
feat(shell): add zoxide as cd replacement
This commit is contained in:
@@ -21,3 +21,4 @@ shellcheck = "latest"
|
|||||||
shfmt = "latest"
|
shfmt = "latest"
|
||||||
starship = "latest"
|
starship = "latest"
|
||||||
terraform = "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
|
||||||
1
zshrc
1
zshrc
@@ -162,6 +162,7 @@ source "$DOTZSH/less.zsh"
|
|||||||
source "$DOTZSH/neovim.zsh"
|
source "$DOTZSH/neovim.zsh"
|
||||||
source "$DOTZSH/nix.zsh"
|
source "$DOTZSH/nix.zsh"
|
||||||
source "$DOTZSH/tmux.zsh"
|
source "$DOTZSH/tmux.zsh"
|
||||||
|
source "$DOTZSH/zoxide.zsh"
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
source "$DOTZSH/containers.zsh"
|
source "$DOTZSH/containers.zsh"
|
||||||
|
|||||||
Reference in New Issue
Block a user