From: Srijan R Shetty Date: Mon, 8 Dec 2014 17:46:27 +0000 (+0530) Subject: Create $AUTHENV_ENV_FILENAME if it does not exist X-Git-Url: http://www.git.stargrave.org/?p=zsh-autoenv.git;a=commitdiff_plain;h=027e8fb5dedbd0143fb3dc5bff85d8aad02bb3f0 Create $AUTHENV_ENV_FILENAME if it does not exist --- diff --git a/autoenv.zsh b/autoenv.zsh index db77553..8bc39bf 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -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}