zsh: make any() case insensitive
authorBernhard Tittelbach <bernhard@tittelbach.org>
Sun, 24 Jul 2011 18:31:30 +0000 (20:31 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 24 Jul 2011 22:29:24 +0000 (00:29 +0200)
On OS-X processes tend to start with an Uppercase letter. And
sometimes they mix captialization even with multiple processes of
the same application.

etc/zsh/zshrc

index 3c472d6..9767008 100644 (file)
@@ -2245,7 +2245,7 @@ any() {
         echo "any - grep for process(es) by keyword" >&2
         echo "Usage: any <keyword>" >&2 ; return 1
     else
-        ps xauwww | grep --color=auto "[${1[1]}]${1[2,-1]}"
+        ps xauwww | grep -i --color=auto "[${1[1]}]${1[2,-1]}"
     fi
 }