From 19d9e50650409008232e117717577a26d2b1bd9f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 16 Nov 2014 12:35:17 +0100 Subject: [PATCH] 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 --- autoenv.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() {