summaryrefslogtreecommitdiff
path: root/.config/bash/rc.d/10_hist.sh
blob: 6b2c4f137df745deef4f88adcf1aef5d0705a469 (plain)
1
2
3
4
5
6
7
8
9
#!/hint/bash

# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
HISTFILE=${XDG_DATA_HOME}/bash/history
HISTTIMEFORMAT='[%Y-%m-%d %H:%M] '
HISTSIZE=5000
shopt -s histappend # append to the history file, don't overwrite it
mkdir -p "${HISTFILE%/*}"