CocoaEngineering
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

Identifierbash-preexec
Current Version0.7.0
Tap Repositoryhomebrew/core
LicenseMIT
Upstream Homepagehttps://github.com/rcaloras/bash-preexec
Last Verified2026-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
Browse macOS Packages A–Z