From 9bf38dd6b87013e7b77695c14dff2a1dd88b9220 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 8 Jan 2016 12:25:24 +0100 Subject: zshrc: lsof_kill --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3