From 21922e152f04ce9446f618627e6b87b16b20668b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 4 Feb 2015 13:30:11 -0800 Subject: [PATCH] pkill_zsh --- dotfiles/lib/shellenv/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index 7d655104..16222950 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -346,3 +346,7 @@ function android_sdk_directory { brew --prefix android-sdk fi } + +function pkill_zsh { + ps aux | grep "$1" | grep -v grep | get_cols 2 | xargs kill -9 +}