Permalink
Browse files

i want me some timestamps in my history file.

  • Loading branch information...
paulirish committed Oct 18, 2012
1 parent bf8c331 commit 699f23f35474849c501684d346a9953a13b9d694
Showing with 7 additions and 6 deletions.
  1. +0 −5 .bash_profile
  2. +7 −1 .exports
View
@@ -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
@@ -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

This comment has been minimized.

Show comment Hide comment
@sindresorhus

sindresorhus Oct 18, 2012

export HISTTIMEFORMAT='%F %T '

@sindresorhus

sindresorhus Oct 18, 2012

export HISTTIMEFORMAT='%F %T '

This comment has been minimized.

Show comment Hide comment
@paulirish

paulirish Oct 19, 2012

Owner

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

aw damn no export.

thx!

@paulirish

paulirish Oct 19, 2012

Owner

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

aw damn no export.

thx!

This comment has been minimized.

Show comment Hide comment
@sindresorhus

sindresorhus Oct 19, 2012

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

@sindresorhus

sindresorhus Oct 19, 2012

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

+
# 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.