postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

Use bash-preexec when it is available #470

Open FranklinYu opened 2 years ago

FranklinYu commented 2 years ago

status: blocked by #471.

postmodern commented 2 years ago

This seems like something that needs a test to catch future breaking changes. Could add a test file that checks for bash ([[ -n "$BASH_VERSION" ]] or even [[ ! -n "$ZSH_VERSION" ]]?), source in bash_preexec before chruby/auto.sh, then check if preexec_functions was appended.