Bashrc History Settings #Text #Bashrc #Ubuntu
# For copy + paste to .bashrc
# timestamp settings
HISTTIMEFORMAT="%h/%d - %H:%M:%S "
# ignore duplicates
HISTCONTROL=ignoredups
HISTIGNORE=?:??
shopt -s histappend # append to history, don't overwrite it
# attempt to save all lines of a multiple-line command in the same history entry
shopt -s cmdhist
# save multi-line commands to the history with embedded newlines
shopt -s lithist