./shells/bash-preexec, Preexec and precmd hook functions a la zsh

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 0.7.0, Package name: bash-preexec-0.7.0, Maintainer: schmonz

preexec and precmd hook functions for Bash in the style of Zsh. They aim
to emulate the behavior as described for Zsh.


Master sites:

Filesize: 17.382 KB

Version history: (Expand)


CVS history: (Expand)


   2026-10-16 23:08:30 by Amitai Schleier | Files touched by this commit (2) | Package updated
Log message:
bash-preexec: update to 0.7.0. Changes:

- Use bats-core/bats-action to set up Bats
- Mention Ghostty
- Test against Bash 3.2, 4.4, 5.0, and 5.3 in CI
- Use a function substitution in $PS0 for preexec in Bash >= 5.3
- Re-adjust PROMPT_COMMAND when PROMPT_COMMAND is modified elsewhere
- fix: Allow __bp_precmd_invoke_cmd to be called from __bp_install
- fix: Properly check to see if we're already installed in PROMPT_COMMAND
- fix preexec for the first command
- Preserve $? and $_ on __bp_precmd_invoke_cmd early returns
- Remove the local declarations of {preexec,precmd}_functions
   2025-08-05 20:46:30 by Amitai Schleier | Files touched by this commit (2)
Log message:
## What's Changed

* Use POSIX syntax for Bash detection
* Fix typo in README: our -> your
* Update to remove shellcheck warnings
* Check Bash version 3.1+
* Addtional fixes for `shellcheck`
* Try to better handle external modification to `$PROMPT_COMMAND`
* Support the array PROMPT_COMMAND (bash >= 5.1)
* Fix the test for the Bash version for shellcheck
* Don't load if old version already present
* Fix false-negative test case for __bp_install
* Exclude the `bind -x` commands from interactive commands
* Fix indentation and remove trailing semicolons
* Improve prior_trap processing
* Remove dependency on sed(1) for history processing
   2023-04-10 15:59:38 by Amitai Schleier | Files touched by this commit (4)
Log message:
Add bash-preexec: Preexec and precmd hook functions a la zsh

preexec and precmd hook functions for Bash in the style of Zsh. They aim
to emulate the behavior as described for Zsh.