From 2d84b6f75b1ecc780cef13b846e86bf919957dc4 Mon Sep 17 00:00:00 2001 From: pauljako <126326487+pauljako@users.noreply.github.com> Date: Sat, 24 Aug 2024 15:21:20 +0200 Subject: [PATCH] Zoxide Support --- .zshrc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 3a5f92e..ae335e1 100644 --- a/.zshrc +++ b/.zshrc @@ -82,6 +82,15 @@ zinit light zsh-users/zsh-completions # Inline Command Suggestions based on history 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 if command -v thefuck &> /dev/null then @@ -136,6 +145,3 @@ setopt hist_ignore_all_dups setopt hist_save_no_dups setopt hist_ignore_dups setopt hist_find_no_dups -# -# Load the zsh completion system -autoload -U compinit && compinit