22
9
Edited to reflect the problem I really wanted to solve:
I need to set up my ruby environment so I can deploy via Capistrano.
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
I put these in ~deploy/.profile, but when I ssh in, they aren't being run. Ideas?
I'm running Ubuntu 12.04.
The original question was:
When I ssh into another account at localhost, it doesn't load my .profile. How can I force ssh to load it? I'm running Ubuntu 12.04.
“You may” is often not true, because ssh is being run by some other tool (continuous delivery) and the command can't be easily changed. – Jan Hudec – 2019-09-25T12:39:04.960