shell-pool / shpool

Think tmux, then aim... lower
Apache License 2.0
1.15k stars 20 forks source link

fix bash prompt prefix injection script #25

Closed ethanpailes closed 4 months ago

ethanpailes commented 4 months ago

This patch fixes an issue with the bash prompt prefix injection script. It turns out PROMPT_COMMAND is actually a list of functions to invoke rather than a single function. This brings the bash implementation more in line with the zsh and fish implementations and makes it work correctly with multi-function prompt hooks.