summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-01-08 12:25:24 +0100
committerPatrick Simianer <p@simianer.de>2016-01-08 12:25:24 +0100
commit9bf38dd6b87013e7b77695c14dff2a1dd88b9220 (patch)
tree9172bfea474134dafef4dc4a190350f99b850156
parent79a29680190272a6aa52e3cc2bf059e2c27eb992 (diff)
zshrc: lsof_kill
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 8a9352c..919483d 100644
--- a/.zshrc
+++ b/.zshrc
@@ -204,6 +204,10 @@ tln() {
reply=( $(tmux list-sessions | cut -d: -f1) )
}
+lsof_kill() {
+ lsof $1 | grep -v COMMAND | cut -d " " -f 2- | strips | cut -d " " -f 1 | xargs kill
+}
+
compctl -K tln muxa
case `whoami` in