diff options
Diffstat (limited to '.config/bash/prompt')
-rw-r--r-- | .config/bash/prompt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/bash/prompt b/.config/bash/prompt index f65f096..4a246b4 100644 --- a/.config/bash/prompt +++ b/.config/bash/prompt @@ -1,5 +1,10 @@ # vim: ft=sh +bind 'set show-mode-in-prompt on' + +bind 'set vi-ins-mode-string "\e[33m[i] "' +bind 'set vi-cmd-mode-string "\e[35m[c] "' + # get current branch in git repo function parse_git_branch() { BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` |