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 +} +