Skip to content

Instantly share code, notes, and snippets.

@michaelklapper
Created December 30, 2013 23:30
Show Gist options
  • Save michaelklapper/8189991 to your computer and use it in GitHub Desktop.
Save michaelklapper/8189991 to your computer and use it in GitHub Desktop.
Color up your bash history with the date time information of called commands.
MY_BASH_BLUE="\033[0;34m" #Blue
MY_BASH_NOCOLOR="\033[0m"
HISTTIMEFORMAT=`echo -e ${MY_BASH_BLUE}[%F %T] $MY_BASH_NOCOLOR `
HISTSIZE=20000
HISTFILESIZE=20000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment