rcaloras / bash-preexec

⚡ preexec and precmd functions for Bash just like Zsh.
MIT License
862 stars 94 forks source link

Support the array PROMPT_COMMAND (bash >= 5.1) #141

Closed akinomyoga closed 1 year ago

akinomyoga commented 1 year ago

This is a fix for the issue I reported in https://github.com/rcaloras/bash-preexec/issues/130#issuecomment-1455852628.

ShellCheck seems to have started to complain about -lt, -eq, etc. in the conditional command [[ ... ]], so I also included a commit (77aec5ff212daed4f0471264ee844c00cdaecc8d) to workaround the shellcheck warning.

akinomyoga commented 1 year ago

I decided to separate a PR for a possible solution to #140 because it would conflict with #128.

akinomyoga commented 1 year ago

I have rebased the PR on top of the latest master (with #128 included).

rcaloras commented 1 year ago

👍 thanks for the PR @akinomyoga! Merging.

akinomyoga commented 1 year ago

Thanks!