FICHA · MANJARO

bash-preexec

preexec and precmd functions for Bash just like Zsh

  • shell-integration
  • SHELL-INTEGRATION
  • CLI
official+codex · reviewed · May 27, 2026 description in en

Description

Adds Bash functions similar to Zsh's preexec and precmd hooks, allowing scripts to run before and after commands or prompt display. It is useful for shell integrations such as history tools, prompts, and automation helpers.

Use it when another shell tool requires these hooks or when building advanced Bash customizations. Incorrect hook scripts can slow or break interactive shells.

Permissions

Permissions not analysed for this source yet.