FORMULAv0.7.0
bash-preexec for macOS
Preexec and precmd functions for Bash (like Zsh)
Installation on macOS (Apple Silicon & Intel)
brew install bash-preexec
Package Metadata
| Identifier | bash-preexec |
|---|---|
| Current Version | 0.7.0 |
| Tap Repository | homebrew/core |
| License | MIT |
| Upstream Homepage | https://github.com/rcaloras/bash-preexec |
| Last Verified | 2026-11-26T14:43:31Z |
Engineering Caveats
Add the following line to your bash profile (e.g. ~/.bashrc, ~/.profile, or ~/.bash_profile) [ -f $HOMEBREW_PREFIX/etc/profile.d/bash-preexec.sh ] && . $HOMEBREW_PREFIX/etc/profile.d/bash-preexec.sh
Related macOS Packages
bash-language-serverLanguage Server for Bashbash-snippetsCollection of small bash scripts for heavy terminal usersbash-git-promptInformative, fancy bash prompt for Git usersbash_unitBash unit testing enterprise edition framework for professionalsbash-completion@2Programmable completion for Bash 4.2+bashateCode style enforcement for bash programsbash-completionProgrammable completion for Bash 3.2bashdbBash shell debugger