When I ssh into my ubuntu-box running Hardy 8.04, the environment variables in my .bashrc are not set.
If I do a source .bashrc, the variables are properly set, and all is well.
How come .bashrc isn't run at login?
Join Stack Overflow to learn, share knowledge, and build your career.
closed as off topic by lesmana, Yan Berk, CodeLikeBeaker, gpojd, NullPoiиteя Nov 9 '12 at 19:54Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||||||||||
|
|||||||||||||||||
|
|
|||||||||||||||||||||
|
|
I had similar situation like Hobhouse. I wanted to use command
and 'some_command' exists in '/var/some_location' so I tried to append '/var/some_location' in PATH environment by editing '$HOME/.bashrc' but that wasn't working. because default .bashrc(Ubuntu 10.4 LTS) prevent from sourcing by code like below
so If you want to change environment for ssh non-login shell. you should add code above that line. |
|||||||||||||
|
|
For an excellent resource on how bash invocation works, what dotfiles do what, and how you should use/configure them, read this: |
|||||||||
|
|
If ayman's solution doesn't work, try naming your file |
|||||||||||||||||||||
|