projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95eeb86
)
zsh: make any() case insensitive
author
Bernhard Tittelbach
<bernhard@tittelbach.org>
Sun, 24 Jul 2011 18:31:30 +0000
(20:31 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
3c472d6
..
9767008
100644
(file)
--- 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 <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
}