From: Oleg Broytman Date: Sat, 28 Dec 2024 22:15:03 +0000 (+0300) Subject: .profile: Improve history handling and displaying X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=45e7df20d21b79d92abe86fd47764ef23eafbb89;p=dotfiles.git .profile: Improve history handling and displaying --- diff --git a/.profile b/.profile index 6adce8f..4f89115 100644 --- a/.profile +++ b/.profile @@ -132,12 +132,13 @@ if [ -t 0 ] ; then FIGNORE='.o:~:.pyc:.pyo:.tmp*' export FIGNORE - HISTCONTROL=ignoreboth + HISTCONTROL=erasedups:ignoreboth HISTIGNORE='&: *:?:??:clear:exit:logout:llp' HISTFILE="$HOME/.sh_history" HISTFILESIZE=2000 HISTSIZE=1000 - export HISTCONTROL HISTIGNORE HISTFILE HISTFILESIZE HISTSIZE + HISTTIMEFORMAT='%Y-%m-%d %T ' + export HISTCONTROL HISTIGNORE HISTFILE HISTFILESIZE HISTSIZE HISTTIMEFORMAT # Used by bash/mc for hostname completion HOSTFILE="$HOME"/lib/config/hosts