X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=880fe75b2a23d2cfcc9fb57c8b2ba8fd3e43ee33;hp=ec981988cacacc08024344f227f65f91418f259e;hb=629f5bb3d5d142e170cd18445b92c5b1fd061ebe;hpb=8ebc8e58c1e6f75a005dd2498166be9f4ec93bad diff --git a/.bashrc b/.bashrc index ec98198..880fe75 100644 --- a/.bashrc +++ b/.bashrc @@ -173,7 +173,10 @@ for file in $HOME/.bookmarks.html;do export WWW_HOME="file://$HOME/" [ -r $file ] && export WWW_HOME="file://$file" done -export GREP_OPTIONS="--binary-files=without-match --directories=skip --exclude=tags --exclude=TAGS --exclude=CVS" +export GREP_OPTIONS="--binary-files=without-match --directories=skip" +if echo x|GREP_OPTIONS="--exclude=y" grep -q x 2>/dev/null;then + export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS" +fi if [ -n "$PS1" ];then # set only in interactive sessions export PS1='[bash]${LOGNAME}@${HOSTNAME}:${PWD}# ' export PS1='\[\017\]'"$PS1" # \017=std charmap