ANTIGEN_EXCLUDE

This commit is contained in:
Dict Xiong 2022-05-21 23:13:01 +08:00
parent b504e97598
commit 8a78837664

34
.zshrc2
View File

@ -42,19 +42,27 @@ fi
source "$ANTIGEN" source "$ANTIGEN"
antigen use oh-my-zsh antigen use oh-my-zsh
# enable plugins # enable plugins
antigen bundle command-not-found antigen_plugins=( \
antigen bundle docker "command-not-found" \
antigen bundle extract "docker" \
antigen bundle fzf "extract" \
antigen bundle git "fzf" \
antigen bundle ripgrep "git" \
antigen bundle thefuck "ripgrep" \
antigen bundle tmux "thefuck" \
antigen bundle ufw "tmux" \
antigen bundle z "ufw" \
antigen bundle https://gitee.com/dictxiong/zsh-syntax-highlighting "z" \
antigen bundle https://gitee.com/dictxiong/zsh-completions "https://gitee.com/dictxiong/zsh-syntax-highlighting" \
antigen bundle https://gitee.com/dictxiong/zsh-autosuggestions "https://gitee.com/dictxiong/zsh-completions" \
"https://gitee.com/dictxiong/zsh-autosuggestions" \
)
for i in ${antigen_plugins[*]}
do
if [[ -z $ANTIGEN_EXCLUDE || ! $i =~ $ANTIGEN_EXCLUDE ]]; then
antigen bundle $i
fi
done
# select theme # select theme
antigen theme ${ZSH_THEME:-ys} antigen theme ${ZSH_THEME:-ys}
# apply # apply