Enable vi mode in bash

This commit is contained in:
Georgi Gardev
2016-10-18 16:20:19 +03:00
parent 2f622e5c37
commit 0f2a4ef21a
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -11,6 +11,9 @@ shopt -s checkwinsize
# Disable Caret-C output
stty -ctlecho
set -o vi
bind -m vi-insert "\C-l":clear-screen
#so as not to be disturbed by Ctrl-S ctrl-Q in terminals:
stty -ixon
+1 -1
View File
@@ -13,7 +13,7 @@ override_git_prompt_colors() {
GIT_PROMPT_CLEAN="${BoldCyan}✔"
GIT_PROMPT_SYMBOLS_AHEAD="${BoldCyan}↑"
GIT_PROMPT_SYMBOLS_BEHIND="${BoldYellow}↓"
GIT_PROMPT_SYMBOLS_BEHIND="${BoldMagenta}↓"
GIT_PROMPT_SYMBOLS_PREHASH="${BoldRed}:"
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING=" "
}