aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S50_functions
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2013-11-19 11:35:14 +0600
committerAnton Bobov <abobov@gmail.com>2014-07-14 11:39:27 +0600
commit2c55485a7f3c01fc1aae4fd5ea0e4b868c4f2691 (patch)
tree37835cae33369bd3772c29c0a7d0bd8620f268be /files/.zsh/rc/S50_functions
parent1a0b86e8b07e8a77fc4a6f277011b18a0eff168d (diff)
ZSH ppgrep helper function.
Diffstat (limited to 'files/.zsh/rc/S50_functions')
-rw-r--r--files/.zsh/rc/S50_functions4
1 files changed, 4 insertions, 0 deletions
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 :