Ever encountered this?
- Install mosh
$ ssh-copy-id localhost
- Prepend your terminal’s starting command with
If running tmux, you’re out of luck, though. You can modify the inner tmux starting command, but I’m not quite sure how mosh handles multiple connections. Also, if you prefer Tmux<1.8 behaviour when creating new panes/windows (keep the same current directory) like I do, that will kill it.