From: Daniel Hahler Date: Thu, 15 Dec 2016 09:36:35 +0000 (+0100) Subject: _autoenv_hash_pair: use sha1sum (C) instead of shasum (Perl) (#52) X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=448ceefd3a19a91ac124328ae722e5b307c9d62d;p=zsh-autoenv.git _autoenv_hash_pair: use sha1sum (C) instead of shasum (Perl) (#52) This improves performance. --- 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" }