shopt -s checkhash
# don't check path for sourced files.
shopt -u sourcepath
-# ignore duplicate lines and spaces for history.
-HISTCONTROL=ignoredups:ignorespace
+# ignore duplicate lines.
+HISTCONTROL=ignoredups
# append to the history file.
shopt -s histappend
# automatically update window size if needed.