Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

tmux new-session -A -s mySessionName

I use an ssh alias at work to always log me into my tmux session if tmux exists on the server

ssh -t 'tmux new-session -A -s mySessionName || exec $SHELL -l'

I shared this with a workmate and he just changed the session name and we both have our own tmux sessions.



The point is to be able to work in different windows in the same session, not have two different sessions. I can see how something similar can be achieved in tmux but it would require getting used to a different workflow.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: