Commit c5b1b0ee by Fred Smith

normal bash history

parent 831474c3
......@@ -96,13 +96,15 @@ if [ "$BASH_VERSINFO" -ge 2 ]; then
shopt -s checkhash
shopt -s no_empty_cmd_completion
shopt -s execfail
export HISTCONTROL=ignorespace
unset HISTFILESIZE
unset HISTSIZE
export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S - '
shopt -s histappend
# save multi-line commands as a single command with semi-colons
HISTFILESIZE=10000
HISTDIR="$HOME/.bash_histories/`uname -n`"
[[ ! -d $HISTDIR ]] && mkdir -p "$HISTDIR"
HISTFILE="$HISTDIR/`date +%Y_%m`"
# Suppress duplicates, bare "ls" and bg,fg and exit
HISTIGNORE="&:ls:[bf]g:exit"
shopt -s cmdhist
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment