Use vi mode in Bash

This commit is contained in:
2021-11-13 21:10:34 +03:00
parent 64964781c1
commit 008ce5754c
2 changed files with 10 additions and 0 deletions

View File

@@ -69,3 +69,6 @@ _BLUE="\[\033[34m\]"
_BOLD="\[\033[1m\]" _BOLD="\[\033[1m\]"
_RESET="\[\033[0m\]" _RESET="\[\033[0m\]"
export PS1="${_GREEN}${_BOLD}\u@\h${_RESET}:${_BLUE}${_BOLD}\W${_RESET} # " export PS1="${_GREEN}${_BOLD}\u@\h${_RESET}:${_BLUE}${_BOLD}\W${_RESET} # "
# Vim everywhere
set -o vi

View File

@@ -1 +1,8 @@
set completion-ignore-case on set completion-ignore-case on
# Show vi mode in prompt
set show-mode-in-prompt on
# Make thin cursor in insert mode
set vi-ins-mode-string \1\e[5 q\2
set vi-cmd-mode-string \1\e[2 q\2