From 43639f0d133d269c19860798581e9b23f7eef588 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 26 Apr 2012 18:07:49 -0400 Subject: [PATCH] Adding 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 +} +