I started to ask this question but answered it while I had it open. I'm going to post this question, follow it up with my solution and leave it open to other potential solutions.
I'm a tmux and vim user. I like remote vim work as I don't have to worry about Ubuntu development machines kirking out when a flash movie gives me a kernel panic. Running tmux means that open files are waiting for me after I reboot and I can carry on from where I left off. I've had problems with vim running in a tmux session when I connect like so:
ssh example.com -t 'tmux attach'
UTF-8 issues crop up that don't crop up when shelling in normally and just attaching to a tmux session manually.
So I want a reusable method of starting something on ssh login, that doesn't affect any of the other things I have configured in my
.zshrc (or your
.bashrc if you still use bash) that may be required for my development environment, that doesn't appear when I'm occasionally working locally on the very said machine.