瀏覽代碼

fix: work around file name assumption for antigen.zsh by moving ~/.antigen.zsh to ~/.antigen/antigen.zsh

Kyle P Davis 6 年之前
父節點
當前提交
16fc3e5594
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      .profile

+ 3 - 1
.profile

@@ -100,7 +100,9 @@ fi
 # fancy shell prompts
 if [ "$ZSH_VERSION" ]; then
 
-	ANTIGEN_BIN="$HOME/.antigen.zsh"
+	ANTIGEN_DIR="$HOME/.antigen"
+	[ -d "$ANTIGEN_DIR" ] || mkdir "$ANTIGEN_DIR"
+	ANTIGEN_BIN="$ANTIGEN_DIR/antigen.zsh"
 	[ -f "$ANTIGEN_BIN" ] || curl -L git.io/antigen > "$ANTIGEN_BIN"
 	source "$ANTIGEN_BIN"