bash: revamped prompt
moved show-mode-in-prompt to .config/bash/prompt added some bling to it too
This commit is contained in:
parent
96dd1e252b
commit
b369d83135
|
@ -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/'`
|
||||
|
|
|
@ -5,7 +5,6 @@ shopt -s histappend
|
|||
|
||||
bind 'set bell-style visible'
|
||||
bind 'set completion-ignore-case on'
|
||||
bind 'set show-mode-in-prompt on'
|
||||
bind 'set expand-tilde on'
|
||||
|
||||
# vi mode stuff
|
||||
|
|
Loading…
Reference in New Issue