diff options
author | Vitor Gonçalves <vitorg@tilde.team> | 2023-12-05 00:56:06 -0300 |
---|---|---|
committer | Vitor Gonçalves <vitorg@tilde.team> | 2023-12-05 00:56:06 -0300 |
commit | b369d831351907a72c298222e3957c0fe7a0e498 (patch) | |
tree | 0172ad1637ace3c7f42c04293a96a27b488e4c89 | |
parent | 96dd1e252b2b8d3ed5f910f7ddf4e04e2536d188 (diff) | |
download | dots-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/prompt | 5 | ||||
-rw-r--r-- | .config/bash/rc | 1 |
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 |