From 38bab29776950ac2364ed64195b89887717c33de Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- bash/.bash.d/20_history.bash | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bash/.bash.d/20_history.bash (limited to 'bash/.bash.d/20_history.bash') diff --git a/bash/.bash.d/20_history.bash b/bash/.bash.d/20_history.bash new file mode 100644 index 0000000..942b884 --- /dev/null +++ b/bash/.bash.d/20_history.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +shopt -s histappend +shopt -s histreedit +shopt -s histverify + +[[ ${HISTFILE} =~ (_bash)+$ ]] && HISTFILE="${HISTFILE}_bash" +HISTCONTROL=erasedups:ignorespace +HISTFILESIZE=$HISTSIZE +HISTTIMEFORMAT="[%F %T] " -- cgit 1.4.1