macOS Installation
Homebrew (Recommended)
The easiest way to install hash on macOS:
brew install juliojimenez/hash/hash-shell
hash-shell
Upgrade
brew upgrade hash-shell
Uninstall
brew uninstall hash-shell
Binary Release
Apple Silicon (M1/M2/M3)
curl -LO https://github.com/juliojimenez/hash/releases/download/v34/hash-shell-v34-darwin-arm64
chmod +x hash-shell-v34-darwin-arm64
sudo mv hash-shell-v34-darwin-arm64 /usr/local/bin/hash-shell
hash-shell
From Source
See Building from Source for compilation instructions.
Setting as Default Shell
Homebrew Installation
sudo bash -c 'echo "$(brew --prefix)/bin/hash-shell" >> /etc/shells'
chsh -s "$(brew --prefix)/bin/hash-shell"
Binary Installation
sudo bash -c 'echo "/usr/local/bin/hash-shell" >> /etc/shells'
chsh -s /usr/local/bin/hash-shell
Log out and log back in for changes to take effect.
Verify Installation
hash-shell --version
hash-shell