]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - autoenv.zsh
Create $AUTHENV_ENV_FILENAME if it does not exist
[zsh-autoenv.git] / 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}