major changes to bashrc

This patch:
  - improves the ctrl+r recollection mechanism
  - sets vi mode on shell startup
This commit is contained in:
stupidcomputer 2024-04-10 19:20:09 -05:00
parent 5d80dbb1ca
commit ffc00b80b8
1 changed files with 14 additions and 0 deletions

View File

@ -2,8 +2,22 @@
# some housekeeping
shopt -s autocd
set -o vi # vim mode
alias ls="ls --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\$ "