zsh: plugin organization

This commit is contained in:
PowerUser64 2021-12-16 14:37:51 -08:00
parent eaf0f0f84b
commit f01573d2e7

15
.zshrc
View file

@ -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 >>>