From 8a78837664010dd64fac79bec18d09fdf87bbf88 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sat, 21 May 2022 23:13:01 +0800 Subject: [PATCH] ANTIGEN_EXCLUDE --- .zshrc2 | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.zshrc2 b/.zshrc2 index 5870919..90385c7 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -42,19 +42,27 @@ fi source "$ANTIGEN" antigen use oh-my-zsh # enable plugins -antigen bundle command-not-found -antigen bundle docker -antigen bundle extract -antigen bundle fzf -antigen bundle git -antigen bundle ripgrep -antigen bundle thefuck -antigen bundle tmux -antigen bundle ufw -antigen bundle z -antigen bundle https://gitee.com/dictxiong/zsh-syntax-highlighting -antigen bundle https://gitee.com/dictxiong/zsh-completions -antigen bundle https://gitee.com/dictxiong/zsh-autosuggestions +antigen_plugins=( \ + "command-not-found" \ + "docker" \ + "extract" \ + "fzf" \ + "git" \ + "ripgrep" \ + "thefuck" \ + "tmux" \ + "ufw" \ + "z" \ + "https://gitee.com/dictxiong/zsh-syntax-highlighting" \ + "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 antigen theme ${ZSH_THEME:-ys} # apply