]> Sergey Matveev's repositories - zsh-autoenv.git/commitdiff
Create $AUTHENV_ENV_FILENAME if it does not exist
authorSrijan R Shetty <srijan.shetty@gmail.com>
Mon, 8 Dec 2014 17:46:27 +0000 (23:16 +0530)
committerDaniel Hahler <git@thequod.de>
Mon, 8 Dec 2014 20:45:13 +0000 (21:45 +0100)
autoenv.zsh

index db77553cdaaff4ec5593a719906671934a577f35..8bc39bfd3c8356cb9ec01e050921da6915281305 100644 (file)
@@ -2,6 +2,7 @@
 # https://github.com/joshuaclayton/dotfiles/blob/master/zsh_profile.d/autoenv.zsh
 
 export AUTOENV_ENV_FILENAME=$HOME/.env_auth
+[ -e $AUTOENV_ENV_FILENAME ] || touch $AUTOENV_ENV_FILENAME
 
 # Name of file to look for when entering directories.
 : ${AUTOENV_FILE_ENTER:=.env}