1
0
Fork 0

update `.bashrc`

urosm 2023-12-20 21:07:55 +01:00
parent e419d10a3c
commit 3c6fb05bbc
1 changed files with 19 additions and 0 deletions

19
bashrc
View File

@ -14,6 +14,25 @@ PROMPT_COMMAND="history -a"
# set the title to user@host:dir
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
# readline
bind "set editing-mode vi"
bind "set keyseq-timeout 50"
bind "set show-mode-in-prompt on"
bind "set vi-ins-mode-string \1\e[35m\2+\1\e[0m\2"
bind "set vi-cmd-mode-string :"
bind "set keymap vi-command"
bind "j:history-substring-search-forward"
bind "k:history-substring-search-backward"
bind "set keymap vi-insert"
bind '"\e[A":history-substring-search-backward'
bind '"\e[B":history-substring-search-forward'
bind "set show-all-if-ambiguous on"
bind "set completion-display-width 0"
bind "set colored-stats on"
bind "set visible-stats on"
# aliases
# exit
alias q="exit"