chruby icon indicating copy to clipboard operation
chruby copied to clipboard

Use bash-preexec when it is available

Open FranklinYu opened this issue 2 years ago • 1 comments

status: blocked by #471.

FranklinYu avatar Jan 22 '22 09:01 FranklinYu

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.

postmodern avatar Jan 22 '22 11:01 postmodern