# HG changeset patch # User Oleksandr Gavenko # Date 1284824965 -10800 # Node ID 653e4ea98ff948d2485160c79afbced4f42efe76 # Parent 115af53281bb067cdfe4b040ce4725c67439887b Exclude 'cd' command from history which comes from MC. diff -r 115af53281bb -r 653e4ea98ff9 .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