Files
tldr/pages/common/unhash.md
T
dede2cffe6 unhash: add page (#22388)
Co-authored-by: Harshavardhan <harshath3018@gmail.com>
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
2026-05-14 10:57:24 +07:00

524 B

unhash

Remove hashed executable locations. See also: hash. More information: https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html.

  • Remove a specific command from the hash table:

unhash {{command}}

  • Unhash non-suffix [a]liases:

unhash -a {{alias}}

  • Unhash [s]uffix aliases:

unhash -s {{alias}}

  • Unhash shell [f]unctions:

unhash -f {{function}}

  • Unhash [d]irectories:

unhash -d {{directory}}

  • Unhash every function that [m]atches a pattern:

unhash -f -m "{{pattern}}"