From 4e8b1d41a98408a62fad524b2382b6fe6834218c Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 8 May 2019 18:23:44 -0500 Subject: [PATCH] Add Kill All Your tmux Sessions as a tmux til --- README.md | 3 ++- tmux/kill-all-your-tmux-sessions.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tmux/kill-all-your-tmux-sessions.md diff --git a/README.md b/README.md index 1a7cac4..4d89c5b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_807 TILs and counting..._ +_808 TILs and counting..._ --- @@ -682,6 +682,7 @@ _807 TILs and counting..._ - [Enabling Vi Mode](tmux/enabling-vi-mode.md) - [Hiding The Status Bar](tmux/hiding-the-status-bar.md) - [Jumping Between Sessions](tmux/jumping-between-sessions.md) +- [Kill All Your tmux Sessions](tmux/kill-all-your-tmux-sessions.md) - [Kill Other Connections To A Session](tmux/kill-other-connections-to-a-session.md) - [Kill The Current Session](tmux/kill-the-current-session.md) - [List All Key Bindings](tmux/list-all-key-bindings.md) diff --git a/tmux/kill-all-your-tmux-sessions.md b/tmux/kill-all-your-tmux-sessions.md new file mode 100644 index 0000000..ee50ac2 --- /dev/null +++ b/tmux/kill-all-your-tmux-sessions.md @@ -0,0 +1,12 @@ +# Kill All Your tmux Sessions + +If you have several tmux sessions running and you'd like to clean house, you +can kill all of those sessions with one command. + +```bash +$ tmux kill-session -a +``` + +The `-a` flag says to target all sessions. + +You can also run this as a tmux command.