Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

i want me some timestamps in my history file.

  • Loading branch information...
commit 699f23f35474849c501684d346a9953a13b9d694 1 parent bf8c331
@paulirish authored
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

export HISTTIMEFORMAT='%F %T '

@paulirish Owner

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

aw damn no export.

thx!

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"
Please sign in to comment.
Something went wrong with that request. Please try again.