Created
August 25, 2015 17:06
-
-
Save jmatsu/f0fed6085a8713c5d9eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preexec_on_bash() { | |
[ -z "$COMP_LINE" ] && [ ! "$BASH_COMMAND" = "$PROMPT_COMMAND" ] && { | |
# $BASH_COMMAND is input commands which are separated by '|', ';' etc.. | |
if [[ $BASH_COMMAND =~ ^\\?git\ ]]; then | |
: | |
fi | |
} | |
} | |
trap 'preexec_on_bash' DEBUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment