From f01573d2e7b5c1c2568bc540313c9eeaba09d512 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Thu, 16 Dec 2021 14:37:51 -0800 Subject: [PATCH] zsh: plugin organization --- .zshrc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index eb70c2a..29ce6cf 100644 --- a/.zshrc +++ b/.zshrc @@ -539,7 +539,8 @@ # <<< # Plugins to install >>> { - alias zinit='ice wait"!0" depth"1";zinit' # turbo mode and git clone depth + # set turbo mode and git clone depth for all plugins + alias zinit='ice wait"!0" depth"1";zinit' zinit snippet OMZ::lib/history.zsh # Some better completion options @@ -555,10 +556,13 @@ ## Themes # terminal colors if [[ -f ~/.config/shell/colors.sh ]];then + # custom colors source ~/.config/shell/colors.sh else - zinit snippet 'https://github.com/chriskempson/base16-shell/blob/master/scripts/base16-onedark.sh' # onedark shell colors + # onedark shell colors + zinit snippet 'https://github.com/chriskempson/base16-shell/blob/master/scripts/base16-onedark.sh' fi + # prompt zinit load "romkatv/powerlevel10k" zinit ice atclone"dircolors -b ./src/dir_colors > colors.zsh" \ atpull'%atclone' pick"colors.zsh" nocompile'!' \ @@ -566,7 +570,11 @@ zinit light arcticicestudio/nord-dircolors [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh + # clear plugin options set above unalias zinit + + # just gonna sneak this in here, too + alias zi > /dev/null && unalias zi zpl zini zplg which-command run-help fsh-alias } # <<< } @@ -621,9 +629,6 @@ zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path $ZSH_CACHE_DIR WORDCHARS=${WORDCHARS//\/[&.;]} # Don't consider certain characters part of the word - - # just gonna sneak this in here, too - unalias zi zpl zini zplg which-command run-help } # <<< ## Keybindings >>>