about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVitor Gonçalves <vitorg@tilde.team>2023-12-05 00:56:06 -0300
committerVitor Gonçalves <vitorg@tilde.team>2023-12-05 00:56:06 -0300
commitb369d831351907a72c298222e3957c0fe7a0e498 (patch)
tree0172ad1637ace3c7f42c04293a96a27b488e4c89
parent96dd1e252b2b8d3ed5f910f7ddf4e04e2536d188 (diff)
downloaddots-b369d831351907a72c298222e3957c0fe7a0e498.tar.gz
bash: revamped prompt
moved show-mode-in-prompt to .config/bash/prompt
added some bling to it too
-rw-r--r--.config/bash/prompt5
-rw-r--r--.config/bash/rc1
2 files changed, 5 insertions, 1 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/'`
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