Zoxide Support

This commit is contained in:
pauljako 2024-08-24 15:21:20 +02:00
parent ba4fe95e5b
commit 2d84b6f75b

12
.zshrc
View file

@ -82,6 +82,15 @@ zinit light zsh-users/zsh-completions
# Inline Command Suggestions based on history # Inline Command Suggestions based on history
zinit light zsh-users/zsh-autosuggestions zinit light zsh-users/zsh-autosuggestions
# #
# Load the zsh completion system
autoload -U compinit && compinit
# Initialize Zoxide if it exists
#
if command -v zoxide &> /dev/null
then
eval "$(zoxide init --cmd cd zsh)"
fi
#
# Initialize TheF*ck if it exists # Initialize TheF*ck if it exists
if command -v thefuck &> /dev/null if command -v thefuck &> /dev/null
then then
@ -136,6 +145,3 @@ setopt hist_ignore_all_dups
setopt hist_save_no_dups setopt hist_save_no_dups
setopt hist_ignore_dups setopt hist_ignore_dups
setopt hist_find_no_dups setopt hist_find_no_dups
#
# Load the zsh completion system
autoload -U compinit && compinit