Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rkt2spc committed May 4, 2022
1 parent 3ae0198 commit 41a8fa4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions evalcache.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ export ZSH_EVALCACHE_DIR=${ZSH_EVALCACHE_DIR:-"$HOME/.zsh-evalcache"}
function _evalcache () {
local cmdHash="nohash"

# Use md5 on MacOS
if command -v md5 > /dev/null; then
if builtin command -v md5 > /dev/null; then
cmdHash=$(echo -n "$*" | md5)
# Fallback to md5sum
elif command -v md5sum > /dev/null; then
elif builtin command -v md5sum > /dev/null; then
cmdHash=$(echo -n "$*" | md5sum | cut -d' ' -f1)
fi

Expand Down

0 comments on commit 41a8fa4

Please sign in to comment.