1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23:58:01 +00:00

Add Kill Other Connections To A Session as a tmux til

This commit is contained in:
jbranchaud
2016-02-24 20:10:00 -06:00
parent 80fd77d0d2
commit 85ecf61f89
2 changed files with 20 additions and 0 deletions

View File

@@ -284,6 +284,7 @@ _345 TILs and counting..._
- [Cycle Through Layouts](tmux/cycle-through-layouts.md)
- [Enabling Vi Mode](tmux/enabling-vi-mode.md)
- [Jumping Between Sessions](tmux/jumping-between-sessions.md)
- [Kill Other Connections To A Session](tmux/kill-other-connections-to-a-session.md)
- [List All Key Bindings](tmux/list-all-key-bindings.md)
- [List Sessions](tmux/list-sessions.md)
- [Open New Window With A Specific Directory](tmux/open-new-window-with-a-specific-directory.md)

View File

@@ -0,0 +1,19 @@
# Kill Other Connections To A Session
One of the best features of tmux is the ability for multiple people to
connect to the same session in order to pair. This can, however, sometimes
result in a extra session hanging around if someone forgets to detach. This
is no problem though because you can view and kill other connections.
Hit
```
<prefix>D
```
to open up an interactive list of all connections to the current session.
Then navigate over the one you want to kill and hit `enter`. If you are
viewing the connections but don't want to kill one, you can hit `q` to back
out.
h/t Josh Davey