Give the hashing function a descriptive name

This commit is contained in:
Sorin Ionescu 2012-04-02 13:06:26 -04:00
parent 57efc55533
commit da673a94cc

View file

@ -10,7 +10,7 @@ if (( ! $+commands[gdircolors] )); then
return 1 return 1
fi fi
function __gnu_utils { function _gnu-utils-hash-commands {
emulate -L zsh emulate -L zsh
local gcmds local gcmds
local gcmd local gcmd
@ -62,12 +62,12 @@ function __gnu_utils {
return 0 return 0
} }
__gnu_utils; _gnu-utils-hash-commands
function hash { function hash {
if (( $+argv[(er)-r] )) || (( $+argv[(er)-f] )); then if (( $+argv[(er)-r] )) || (( $+argv[(er)-f] )); then
builtin hash "$@" builtin hash "$@"
__gnu_utils _gnu-utils-hash-commands
else else
builtin hash "$@" builtin hash "$@"
fi fi