Skip to content

Instantly share code, notes, and snippets.

@gantzm
Created February 29, 2012 14:38
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 gantzm/1941251 to your computer and use it in GitHub Desktop.
Save gantzm/1941251 to your computer and use it in GitHub Desktop.
Bash history hacks.
# Taken from http://blog.sanctum.geek.nz/better-bash-history/
# Use append mode.
shopt -s histappend
# Keep last 5000 commands
HISTSIZE=5000
HISTTIMEFORMAT='%F %T '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment