From 7f9d0745d23b6d84e9dfc6910f91fbbe4c86b8fc Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 26 Apr 2012 22:09:16 -0400 Subject: [PATCH] Adding the psgrep plugin --- plugins/psgrep/psgrep.plugin.zsh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 plugins/psgrep/psgrep.plugin.zsh diff --git a/plugins/psgrep/psgrep.plugin.zsh b/plugins/psgrep/psgrep.plugin.zsh new file mode 100644 index 000000000..948698e1b --- /dev/null +++ b/plugins/psgrep/psgrep.plugin.zsh @@ -0,0 +1,7 @@ +# Grep out of ps. Cut to 80 chars +function psgrep +{ + /bin/ps alxw |head -1 + /bin/ps alxw |grep $1 |grep -v "grep $1" |cut -c 1-$COLUMNS +} +