bash: revamped prompt

moved show-mode-in-prompt to .config/bash/prompt
added some bling to it too
This commit is contained in:
Vitor Gonçalves 2023-12-05 00:56:06 -03:00
parent 96dd1e252b
commit b369d83135
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
2 changed files with 5 additions and 1 deletions

View File

@ -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/'`

View File

@ -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