Skip to content

Instantly share code, notes, and snippets.

@fishdust fishdust/history
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.