Commit 972d3c2d by Fred Smith

Merge pull request #2441 from edx/derf/-m_normal_bash_history

normal bash history
parents 831474c3 c5b1b0ee
...@@ -96,13 +96,15 @@ if [ "$BASH_VERSINFO" -ge 2 ]; then ...@@ -96,13 +96,15 @@ if [ "$BASH_VERSINFO" -ge 2 ]; then
shopt -s checkhash shopt -s checkhash
shopt -s no_empty_cmd_completion shopt -s no_empty_cmd_completion
shopt -s execfail 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 shopt -s cmdhist
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"
fi 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