Browse Source

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

Kyle P Davis 6 years ago
parent
commit
16fc3e5594
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .profile

+ 3 - 1
.profile

@@ -100,7 +100,9 @@ fi
 # fancy shell prompts
 # fancy shell prompts
 if [ "$ZSH_VERSION" ]; then
 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"
 	[ -f "$ANTIGEN_BIN" ] || curl -L git.io/antigen > "$ANTIGEN_BIN"
 	source "$ANTIGEN_BIN"
 	source "$ANTIGEN_BIN"