updates, especially for etiona
[distro-setup] / .bashrc
diff --git a/.bashrc b/.bashrc
index ac3ec039e4d35ea9e63723692b173836776a3978..04df859f14367be83d2655d2f12e9aee32c2b820 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -9,9 +9,37 @@
 #exec 2>>/a/tmp/bashlog
 
 
+
+# History related options first, or else
+# we risk screwing up history history. And this is duplicated
+# in ~/.bash_profile just for good measure
+# history number. History expansion is good.
+PS4='$LINENO+ '
+# history file size limit, set to unlimited.
+# this needs to be different from the default because
+# default HISTFILESIZE is 500 and could clobber our history
+HISTFILESIZE=
+# max commands 1 session can append/read from history
+HISTSIZE=1000000
+# the time format display when doing the history command
+# also, setting this makes the history file record time
+# of each command as seconds from the epoch
+HISTTIMEFORMAT="%Y-%m-%d %I:%M %p "
+# consecutive duplicate lines dont go in history
+HISTCONTROL=ignoredups
+# works in addition to HISTCONTROL to do more flexible things
+# it could also do the same things as HISTCONTROL and thus replace it,
+# but meh. dunno why, but just " *" does glob expansion, so use [ ] to avoid it.
+HISTIGNORE='pass *:[ ]*:otp *:oathtool *'
+
+
 # see comments in brc2 sl() function for background.
 if [[ $SSH_CONNECTION ]] \
      && [[ $BRC != t ]];  then
+  brc() {
+    export BRC=t
+    source ~/.bashrc
+  }
   return 0
 else
 
@@ -48,5 +76,7 @@ else
     fi
   fi
 fi
+
+
 # ensure no bad programs appending to this file will have an affect
 return 0