BTS

Message4508

Author ft
Recipients vasyapupkin.1986
Date 2013-02-04.22:14:27
Content
Right. How about this patch?


diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc
index 50fac90..61fd010 100644
--- a/etc/zsh/zshrc
+++ b/etc/zsh/zshrc
@@ -2412,8 +2412,13 @@ modified() {
 check_com new || alias new=modified
 
 # use colors when GNU grep with color-support
-#a2# Execute \kbd{grep -{}-color=auto}
-(( $#grep_options > 0 )) && alias grep='grep '${grep_options:+"${grep_options[*]}"}
+if (( $#grep_options > 0 )); then
+    o=${grep_options:+"${grep_options[*]}"}
+    #a2# Execute \kbd{grep -{}-color=auto}
+    alias grep='grep '$o
+    alias egrep='egrep '$o
+    unset o
+fi
 
 # Translate DE<=>EN
 # 'translate' looks up fot a word in a file with language-to-language


-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925
History
Date User Action Args
2013-02-04 22:14:27ftsetrecipients: + vasyapupkin.1986
2013-02-04 22:14:27ftlinkissue1230 messages
2013-02-04 22:14:27ftcreate