Timeline for How to start tmux with attach if a session exists
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 24, 2017 at 17:05 | comment | added | rovr138 |
@rubo77 Resources. Some people have a few default tools, windows, panes, etc created when they launch tmux.
|
|
| Sep 26, 2016 at 3:14 | comment | added | rubo77 | @BrunoPolaco: what is the big caveat with an extra empty tmux session running all the time (apart from that it doesn't look tidy in the task-list)? | |
| Mar 21, 2015 at 15:07 | comment | added | rubo77 |
So you would have to add an alias alias tmux="tmux attach" to prevent this problem
|
|
| Nov 23, 2014 at 23:35 | comment | added | Bruno Polaco |
this is a neat trick, but there is a caveat: if tmux is invoked without arguments, it will create a new session and then create a second session as soon it reaches this line in your ~/.tmux.conf. You can see this issue by executing tmux ls after creating the first session. In practice, after you put this in your file, you cannot call tmux with no arguments anymore
|
|
| Dec 6, 2013 at 9:14 | vote | accept | rubo77 | ||
| Dec 6, 2013 at 1:19 | history | answered | Joe Casadonte | CC BY-SA 3.0 |