From b369d831351907a72c298222e3957c0fe7a0e498 Mon Sep 17 00:00:00 2001 From: Vitor Gonçalves Date: Tue, 5 Dec 2023 00:56:06 -0300 Subject: bash: revamped prompt moved show-mode-in-prompt to .config/bash/prompt added some bling to it too --- .config/bash/prompt | 5 +++++ .config/bash/rc | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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/'` diff --git a/.config/bash/rc b/.config/bash/rc index 2445079..16ba85a 100644 --- a/.config/bash/rc +++ b/.config/bash/rc @@ -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 -- cgit 1.4.1-2-gfad0