Created
May 8, 2010 23:57
-
-
Save pierrel/394842 to your computer and use it in GitHub Desktop.
git's not bash
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
| command_not_found_handle() { | |
| # do not run when inside Midnight Commander or within a Pipe | |
| if test -n "$MC_SID" -o ! -t 1 ; then | |
| echo $"$1: command not found" | |
| return 127 | |
| fi | |
| if test -x "/usr/local/git/libexec/git-core/git-$1"; then | |
| echo "executing 'git $@'" | |
| git "$@" | |
| else | |
| echo "-bash: $1: command not found" | |
| return 127 | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment