Background: An co-worker at my company uses tmux all the time, in our spare-time he teached me mastering tmux and vim and I really fall in love with the power of this combination.
Currently, I am mainly using tmux in OS X when I start the Terminal app. Depending where I go, I choose a different laptop (therefor other OS'es too) and so I often code via ssh remotely with my server running Ubuntu (Server version) where everything is at it's place.
Problem: I'd like to connect to my server and instantly have the last tmux session avaiable and never having the need to use the classic bash.
I currently solve it by having tmux new-session -A -s main
in my rc config and using twice CTRL-D
although I still fall back when I exit.
Is there a better way of doing this?
chsh
? – o11c Jul 16 at 21:47