diff options
author | Patrick Simianer <p@simianer.de> | 2016-01-08 12:25:24 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-01-08 12:25:24 +0100 |
commit | 9bf38dd6b87013e7b77695c14dff2a1dd88b9220 (patch) | |
tree | 9172bfea474134dafef4dc4a190350f99b850156 | |
parent | 79a29680190272a6aa52e3cc2bf059e2c27eb992 (diff) |
zshrc: lsof_kill
-rw-r--r-- | .zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |