From c93bc1dd7dd957b6ad50e8f4fedf8e5996635014 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 8 Feb 2022 09:38:03 -0600 Subject: [PATCH] replace enhancd with zoxide --- home/private_dot_config/sheldon/plugins.toml | 6 +++--- info/tools.yml | 2 ++ system/env.sh | 4 ++++ system/prompt.sh | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/home/private_dot_config/sheldon/plugins.toml b/home/private_dot_config/sheldon/plugins.toml index f0040ac..aef014f 100644 --- a/home/private_dot_config/sheldon/plugins.toml +++ b/home/private_dot_config/sheldon/plugins.toml @@ -29,14 +29,14 @@ use = ['{completion,clipboard}.zsh'] [plugins.base16] github = "chriskempson/base16-shell" -[plugins.enhancd] -github = "b4b4r07/enhancd" +# [plugins.enhancd] +# github = "b4b4r07/enhancd" [plugins.zsh-defer] github = "romkatv/zsh-defer" [plugins.zcolors] -github ="marlonrichert/zcolors" +github = "marlonrichert/zcolors" [plugins.zsh-syntax-highlighting] github = "zsh-users/zsh-syntax-highlighting" diff --git a/info/tools.yml b/info/tools.yml index cd32b02..7c77fa2 100644 --- a/info/tools.yml +++ b/info/tools.yml @@ -24,6 +24,8 @@ bat: user: sharkdp just: user: casey +zoxide: + user: ajeetdsouza # system monitoring bottom: diff --git a/system/env.sh b/system/env.sh index 6af445f..3a397fc 100644 --- a/system/env.sh +++ b/system/env.sh @@ -63,6 +63,10 @@ if is-executable bat; then export BAT_STYLE=header,numbers,grid fi +if is-executable zoxide; then + export _ZO_FZF_OPTS="--preview 'command lsd --tree --color always --icon always {2..}'" +fi + export ENHANCD_DOT_ARG="up" export STARSHIP_CONFIG=~/.config/starship/config.toml diff --git a/system/prompt.sh b/system/prompt.sh index 5156bae..8267a39 100644 --- a/system/prompt.sh +++ b/system/prompt.sh @@ -3,4 +3,6 @@ compinit eval "$(sheldon -q --config-file ~/.config/sheldon/plugins.toml source)" +is-executable zoxide && eval eval "$(zoxide init zsh --cmd cd)" + eval "$(starship init zsh)"