major changes to bashrc
This patch: - improves the ctrl+r recollection mechanism - sets vi mode on shell startup
This commit is contained in:
parent
5d80dbb1ca
commit
ffc00b80b8
|
@ -2,8 +2,22 @@
|
||||||
|
|
||||||
# some housekeeping
|
# some housekeeping
|
||||||
shopt -s autocd
|
shopt -s autocd
|
||||||
|
set -o vi # vim mode
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
alias ll="ls -lah --color=auto"
|
alias ll="ls -lah --color=auto"
|
||||||
|
function cd() {
|
||||||
|
builtin cd "$@" && ls --color=auto
|
||||||
|
}
|
||||||
|
|
||||||
|
# history
|
||||||
|
HISTCONTROL=ignorespace:ignoredups:erasedups
|
||||||
|
HISTFILESIZE=9999999999
|
||||||
|
HISTSIZE=9999999999
|
||||||
|
|
||||||
|
shopt -s cmdhist
|
||||||
|
shopt -s histreedit
|
||||||
|
shopt -s histappend
|
||||||
|
shopt -s histverify
|
||||||
|
|
||||||
PS1="\h:\w\$ "
|
PS1="\h:\w\$ "
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue