From c29c5325b3c17fbb1057424e3c6dbed823b1e13e Mon Sep 17 00:00:00 2001 From: nold Date: Thu, 4 Jan 2024 16:28:24 +0100 Subject: [PATCH] bashrc history stuff --- bashrc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index e0f169c..1189aec 100644 --- a/bashrc +++ b/bashrc @@ -1,6 +1,10 @@ source /etc/profile 2>/dev/null source /etc/profile.d/* 2>/dev/null +if [ -e /usr/bin/gnome-keyring-daemon ] ; then + source <(/usr/bin/gnome-keyring-daemon --start --components=ssh) +fi + # Change prompt if root if [ $UID -eq 0 ] ; then PROMPT_SUFFIX='\[\033[1;31m\] # \[\033[0m\]' @@ -42,12 +46,16 @@ export TERM=xterm-256color export MC_SKIN=$HOME/.mc/lib/solarized.ini # Better History -HISTFILE=~/.bash_history -HISTSIZE=100000 -HISTTIMEFORMAT="%F %T " -HISTCONTROL='ignorespace:ignoredups' -HISTIGNORE='l:ls:history' +export HISTFILE=~/.bash_history +export HISTSIZE=10000000 +export HISTFILESIZE=10000000 +export HISTTIMEFORMAT="%F %T " +export HISTCONTROL='ignorespace:ignoredups' +export HISTIGNORE='l:ls:history' + +# Don't render ![0-9] as previous command +set +o histexpand # append to history, don't overwrite it shopt -s histappend # attempt to save all lines of a multiple-line command in the same history entry