From: Daniel Hahler Date: Sun, 16 Nov 2014 11:35:17 +0000 (+0100) Subject: Set DOTENV_LOOK_UPWARDS=1 by default X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=19d9e50650409008232e117717577a26d2b1bd9f;p=zsh-autoenv.git Set DOTENV_LOOK_UPWARDS=1 by default Change `_dotenv_hash_pair`, adding a version suffix to trigger re-authentication. Fixes https://github.com/Tarrasch/zsh-autoenv/issues/3 --- diff --git a/autoenv.zsh b/autoenv.zsh index 60c8d03..1499103 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -25,8 +25,7 @@ _dotenv_stack_entered=() _dotenv_hash_pair() { local env_file=$1 - env_shasum=$(shasum $env_file | cut -d' ' -f1) - echo "$env_file:$env_shasum" + echo "$env_file:$env_shasum:1" } _dotenv_authorized_env_file() {