Timeline for Kill a tmux session and select another tmux session
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Mar 17, 2020 at 11:09 | history | suggested | M Imam Pratama | CC BY-SA 4.0 | Reduce redundancy |
| Mar 17, 2020 at 10:45 | review | Suggested edits | |||
| S Mar 17, 2020 at 11:09 | |||||
| Jul 16, 2015 at 19:01 | comment | added | Chris Johnsen | @Miles: Try this one: bind-key X run-shell 'tmux switch-client -n \; kill-session -t "#S"' (tmux 1.8+ run-shell expands #S directly, so we get to omit the display-message and its extra quoting) | |
| Jul 16, 2015 at 8:11 | comment | added | Miles | How do you do this without confirm-before? I'm having trouble getting the escaping right. | |
| Dec 16, 2012 at 9:57 | comment | added | Trey Hunner | This seems to do exactly what I was looking for. I had tried a similar method after finding the tmux display-message -p "#S" trick in another answer. It seems like wrapping everything in run-shell was the key. Thanks! | |
| Dec 16, 2012 at 9:55 | vote | accept | Trey Hunner | ||
| Dec 16, 2012 at 6:10 | history | edited | Chris Johnsen | CC BY-SA 3.0 | added 65 characters in body |
| Dec 16, 2012 at 5:58 | history | answered | Chris Johnsen | CC BY-SA 3.0 |