Exclude 'cd' command from history which comes from MC.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Sep 2010 18:49:25 +0300
changeset 104 653e4ea98ff9
parent 103 115af53281bb
child 106 6bcd784caf97
child 119 9013ed85e237
Exclude 'cd' command from history which comes from MC.
.bashrc
--- a/.bashrc	Sat Sep 18 06:30:02 2010 +0300
+++ b/.bashrc	Sat Sep 18 18:49:25 2010 +0300
@@ -23,7 +23,8 @@
 HISTCONTROL=igrorespace:erasedups
 
 # Don't store noisy/dumb items.
-HISTIGNORE=" ?cd ..":"e .":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":"vlc*":ls:pwd
+# TIP: MC command start with space.
+HISTIGNORE=" ?cd ..":" cd *":"e .":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":"vlc*":ls:pwd
 
 # To these options assigned default value, as they satisfy my needs I comment them.
 # HISTFILE=~/.bash_history  # where is command history stored