# HG changeset patch # User Oleksandr Gavenko # Date 1288792813 -7200 # Node ID 43f69ef5ec58234c038494bfc11d5c3c647c741e # Parent 6bcd784caf97187f07ff73dc7cb8ab6128229c41 Remove ? from patterns as I previously incorrectly understand its meaning. Whore value in multiline way. diff -r 6bcd784caf97 -r 43f69ef5ec58 .bashrc --- a/.bashrc Wed Nov 03 11:59:09 2010 +0200 +++ b/.bashrc Wed Nov 03 16:00:13 2010 +0200 @@ -24,7 +24,11 @@ # Don't store noisy/dumb items. # 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 +HISTIGNORE=\ +"cd ..":"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 diff -r 6bcd784caf97 -r 43f69ef5ec58 .mc/bashrc --- a/.mc/bashrc Wed Nov 03 11:59:09 2010 +0200 +++ b/.mc/bashrc Wed Nov 03 16:00:13 2010 +0200 @@ -4,4 +4,7 @@ # 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*" +export HISTIGNORE=$HISTIGNORE:\ +" cd *":" e *":\ +" sudo mv*":" sudo rm*":" sudo cp*":" sudo mkdir*":" sudo chmod *":" sudo chown *":\ +" ls*":" pwd*":" vlc*"