Skip to content

Instantly share code, notes, and snippets.

@fishdust
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fishdust/2e84af0a1b91b117f6b7 to your computer and use it in GitHub Desktop.
Save fishdust/2e84af0a1b91b117f6b7 to your computer and use it in GitHub Desktop.
Makes bash history useful by time stamping, ignoring repeated commands, and allowing more history events
HISTFILESIZE=2000000
HISTSIZE=100000
HISTTIMEFORMAT='%F %T '
HISTIGNORE="&:[ ]*"
# add to .bash_profile or .bashrc
# history will look like this:
#
# 4729 2014-11-30 12:11:50 cat .bash_profile
# 4730 2014-11-30 12:18:54 uptime
# 4731 2014-11-30 12:18:59 yum list updates
# 4732 2014-11-30 13:22:42 cat .bashrc
# 4733 2014-11-30 13:24:34 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment