update `.bashrc`
parent
0abb6e1a2b
commit
c8bb97c866
9
.bashrc
9
.bashrc
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# readline
|
# readline
|
||||||
bind "set editing-mode vi"
|
bind "set editing-mode vi"
|
||||||
bind "set keyseq-timeout 50"
|
bind "set keyseq-timeout 0"
|
||||||
bind "set show-mode-in-prompt on"
|
bind "set show-mode-in-prompt on"
|
||||||
bind "set vi-ins-mode-string \1\e[01;35m\2+\1\e[0m\2"
|
bind "set vi-ins-mode-string \1\e[01;35m\2+\1\e[0m\2"
|
||||||
bind "set vi-cmd-mode-string :"
|
bind "set vi-cmd-mode-string :"
|
||||||
|
@ -36,6 +36,13 @@ alias ls="ls --color=auto"
|
||||||
alias ll="ls -AF1"
|
alias ll="ls -AF1"
|
||||||
alias lll="ls -AFlh"
|
alias lll="ls -AFlh"
|
||||||
|
|
||||||
|
# history
|
||||||
|
shopt -u histappend
|
||||||
|
HISTSIZE=-1
|
||||||
|
HISTFILESIZE=-1
|
||||||
|
HISTIGNORE='exit:q:ls:ll:lll'
|
||||||
|
HISTCONTROL='ignoreboth:erasedups'
|
||||||
|
|
||||||
# bash completion
|
# bash completion
|
||||||
if ! shopt -oq posix; then
|
if ! shopt -oq posix; then
|
||||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
|
|
Loading…
Reference in New Issue