1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-12-22 10:50:16 +02:00

_autoenv_hash_pair: use sha1sum (C) instead of shasum (Perl) (#52)

This improves performance.
This commit is contained in:
Daniel Hahler 2016-12-15 10:36:35 +01:00 committed by Arash Rouhani
parent 0ad53b6ee6
commit 448ceefd3a

View File

@ -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"
}