Last active
August 29, 2015 14:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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