From: Bernhard Tittelbach Date: Sun, 24 Jul 2011 18:31:30 +0000 (+0200) Subject: zsh: make any() case insensitive X-Git-Tag: v0.4.01~4 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=05260a8177983e048040929718856616c0a4b48e;hp=95eeb86221ce6741286b1b15b7e1ce353b04c9ad;p=grml-etc-core.git zsh: make any() case insensitive On OS-X processes tend to start with an Uppercase letter. And sometimes they mix captialization even with multiple processes of the same application. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 3c472d6..9767008 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2245,7 +2245,7 @@ any() { echo "any - grep for process(es) by keyword" >&2 echo "Usage: any " >&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 }