From 2c55485a7f3c01fc1aae4fd5ea0e4b868c4f2691 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Tue, 19 Nov 2013 11:35:14 +0600 Subject: ZSH ppgrep helper function. --- files/.zsh/rc/S50_functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'files/.zsh') diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index 731c98f..a235839 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -2,4 +2,8 @@ mcd() { mkdir -p "$1" && cd "$1" } +ppgrep() { + pgrep "$@" | xargs --no-run-if-empty ps fp +} + # vim: ft=zsh : -- cgit v1.2.3