Added history ignore rules.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 18 Oct 2009 13:51:23 +0300
changeset 7 7c403971585d
parent 6 687b3cb8c59a
child 10 87c52a29c6a4
Added history ignore rules.
linux/.mc/bashrc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/linux/.mc/bashrc	Sun Oct 18 13:51:23 2009 +0300
@@ -0,0 +1,7 @@
+# -*- mode: sh -*-
+
+#   ignorespace do not save lines that start with space
+#   erasedups all previous lines matching the current line to be removed from
+#             the history list before that line is saved
+export HISTCONTROL=igrorespace:erasedups
+export HISTIGNORE=" ?cd *":"e *":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":ls:pwd:"vlc*"