From ffc00b80b829ac6170dedce9eb6e4c47cd329182 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Wed, 10 Apr 2024 19:20:09 -0500 Subject: [PATCH] major changes to bashrc This patch: - improves the ctrl+r recollection mechanism - sets vi mode on shell startup --- .config/bash/bashrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.config/bash/bashrc b/.config/bash/bashrc index 4dc8c12..4fa8d0f 100644 --- a/.config/bash/bashrc +++ b/.config/bash/bashrc @@ -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\$ "