I'm having a problem with Yosemite, it won't set the environment variables when doing:
ssh localhost
env | grep myvar
no sign of myvar. I've managed to get Yosemite to set the environment variables for terminal sessions etc using the excellent suggestion here.
Why is it not working for the ssh session?