Explorar o código

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

Kyle P Davis %!s(int64=6) %!d(string=hai) anos
pai
achega
16fc3e5594
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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"