Skip to content
Browse files

i want me some timestamps in my history file.

  • Loading branch information...
1 parent bf8c331 commit 699f23f35474849c501684d346a9953a13b9d694 @paulirish committed Oct 17, 2012
Showing with 7 additions and 6 deletions.
  1. +0 −5 .bash_profile
  2. +7 −1 .exports
View
5 .bash_profile
@@ -11,11 +11,6 @@ unset file
# init rvm
source ~/.rvm/scripts/rvm
-# timestamps for bash history. www.debian-administration.org/users/rossen/weblog/1
-# saved for later analysis
-HISTTIMEFORMAT='%F %T '
-export HISTTIMEFORMAT
-
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob
View
8 .exports
@@ -7,5 +7,11 @@ export MANPAGER="less -X"
export HISTSIZE=32768
export HISTFILESIZE=$HISTSIZE
export HISTCONTROL=ignoredups
+
+# timestamps for bash history. www.debian-administration.org/users/rossen/weblog/1
+# saved for later analysis
+HISTTIMEFORMAT='%F %T '
+export HISTTIMEFORMAT
@sindresorhus
sindresorhus added a note Oct 18, 2012

export HISTTIMEFORMAT='%F %T '

@paulirish
Owner
paulirish added a note Oct 19, 2012

oh that's handy. wheres my bash operator precedence cheat sheet?

aw damn no export.

thx!

@sindresorhus
sindresorhus added a note Oct 19, 2012

Oh, that operator precedence thing looks handy. I'll raise you conditional expression cheatsheet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
# Make some commands not show up in history
-export HISTIGNORE="ls:ls *:cd:cd -:pwd;exit:date:* --help"
+export HISTIGNORE="ls:ls *:cd:cd -:pwd;exit:date:* --help"

0 comments on commit 699f23f

Please sign in to comment.
Something went wrong with that request. Please try again.