]> Sergey Matveev's repositories - zsh-autoenv.git/commitdiff
Set DOTENV_LOOK_UPWARDS=1 by default
authorDaniel Hahler <git@thequod.de>
Sun, 16 Nov 2014 11:35:17 +0000 (12:35 +0100)
committerDaniel Hahler <git@thequod.de>
Mon, 24 Nov 2014 19:13:17 +0000 (20:13 +0100)
Change `_dotenv_hash_pair`, adding a version suffix to trigger
re-authentication.

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/3

autoenv.zsh

index 60c8d03189d44b2640648528ce6c74cd906db6e9..1499103e5918216e5d5b28e7289d4453ecf5a4cb 100644 (file)
@@ -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() {