r***e 发帖数: 2000 | 1 It seems .bash_profile was not run when opening a terminal
window from the desktop; but run if ssh to the computer.
Why? And how to make it run all the time? Thank you. |
w**********u 发帖数: 913 | 2 login shell
【在 r***e 的大作中提到】 : It seems .bash_profile was not run when opening a terminal : window from the desktop; but run if ssh to the computer. : Why? And how to make it run all the time? Thank you.
|
b**g 发帖数: 335 | 3 http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.htm
【在 r***e 的大作中提到】 : It seems .bash_profile was not run when opening a terminal : window from the desktop; but run if ssh to the computer. : Why? And how to make it run all the time? Thank you.
|
r***e 发帖数: 2000 | 4
Thank you. Now that I know how it supposed to work,
I am still confused on what is the best way to do it,
and wonder is there a better way.:(
One comment said that .bashrc supposed to contain
only bash specific stuff, while the .profile takes
care of universal settings. If PATH is not bash
specific, then it should be placed in .profile,
and is not set in interactive shell.
【在 b**g 的大作中提到】 : http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.htm
|