Created
August 8, 2012 00:48
-
-
Save ichikaway/3291004 to your computer and use it in GitHub Desktop.
put current branch name on input cursor(need bash version 4)
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
bind -x '"\C-o": READLINE_LINE="${READLINE_LINE:0:$READLINE_POINT} | |
`git symbolic-ref HEAD | cut -d/ -f 3` ${READLINE_LINE:${READLINE_POINT}}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment