From 448ceefd3a19a91ac124328ae722e5b307c9d62d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 15 Dec 2016 10:36:35 +0100 Subject: [PATCH] _autoenv_hash_pair: use sha1sum (C) instead of shasum (Perl) (#52) This improves performance. --- autoenv.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoenv.zsh b/autoenv.zsh index b6863cb..5882f9f 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -179,7 +179,7 @@ _autoenv_hash_pair() { echo "Missing file argument for _autoenv_hash_pair!" >&2 return 1 fi - env_shasum=$(shasum $env_file | cut -d' ' -f1) + env_shasum=$(sha1sum $env_file | cut -d' ' -f1) fi echo ":${env_file}:${env_shasum}:1" } -- 2.44.0