blob: 3d34d6e97b57207ac3ecc6d55debd3b450cf6ca6 (
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=50000
shopt -s histappend # append to the history file, don't overwrite it
mkdir -p "${HISTFILE%/*}"
|