Create or attach an existing tmux session
Sometimes connection could break (network changed / lost) and then your session work is "lost".
In order to avoid this trouble you can use tmux1 with the following parameters :
tmux new -As "your_session_name"
You can replace your_session_name
with any identifier you want.
Tip
Instead of typing this command every time you launch your connection, you can set a custom "Execute command" :
- Edit your connection
- Go to "Terminal Settings"
- Touch "Execute command"
- Choose "Custom"
- Fill the field with the above command
- Save your connection
- Launch your connection and enjoy
Last update:
December 19, 2021