From 2f064b63c1217e56cb1320dae1844d2d82b625ce Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Fri, 6 Jan 2023 16:08:41 +0800 Subject: [PATCH] bug fix (Fri Jan 6 16:08:41 CST 2023) --- .zshrc2 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.zshrc2 b/.zshrc2 index 75db74f..b32430e 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -18,15 +18,7 @@ export LESS_TERMCAP_md=$'\E[01;33m' if [[ -f ~/.config/dotfiles/env ]]; then set -a; source ~/.config/dotfiles/env; set +a; fi # antigen -if [[ -z "$DFS_NO_WALL" ]]; then - ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/develop/bin/antigen.zsh" - ANTIGEN_OMZ_REPO_URL="https://gitee.com/dictxiong/ohmyzsh.git" - ANTIGEN_PLUGINS=( - "https://gitee.com/dictxiong/zsh-syntax-highlighting" - "https://gitee.com/dictxiong/zsh-completions" - "https://gitee.com/dictxiong/zsh-autosuggestions" - ) -else +if [[ "$DFS_NO_WALL" == "1" ]]; then ANTIGEN_URL="https://raw.githubusercontent.com/zsh-users/antigen/develop/bin/antigen.zsh" ANTIGEN_OMZ_REPO_URL="https://github.com/ohmyzsh/ohmyzsh.git" ANTIGEN_PLUGINS=( @@ -34,6 +26,14 @@ else "https://github.com/zsh-users/zsh-completions" "https://github.com/zsh-users/zsh-autosuggestions" ) +else + ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/develop/bin/antigen.zsh" + ANTIGEN_OMZ_REPO_URL="https://gitee.com/dictxiong/ohmyzsh.git" + ANTIGEN_PLUGINS=( + "https://gitee.com/dictxiong/zsh-syntax-highlighting" + "https://gitee.com/dictxiong/zsh-completions" + "https://gitee.com/dictxiong/zsh-autosuggestions" + ) fi ANTIGEN="$HOME/antigen.zsh" # Install antigen.zsh if not exist