답변:
http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files를 읽으십시오 .
When Bash is invoked as an interactive login shell, or as a
non-interactive shell with the --login option, it first reads
and executes commands from the file /etc/profile, if that file
exists. After reading that file, it looks for ~/.bash_profile,
~/.bash_login, and ~/.profile, in that order, and reads and executes
commands from the first one that exists and is readable. The
--noprofile option may be used when the shell is started to inhibit
this behavior.
다른 쉘도로드 ~/.profile
합니다 (zsh, tcsh) .. 그래서 환경에 넣을 것 ~/.profile
입니다.
맥 OSX 관련 업데이트 (@Matt B 덕분에) :
GUI 프로그램의 경우 http://developer.apple.com/library/mac/#qa/qa2001/qa1067.html을 읽고 ~/.MacOSX/environment.plist
신중하게 편집 하십시오 .
~/.MacOSX/environment.plist
. 자세한 정보는 여기 ( astro.washington.edu/users/rowen/AquaEnvVar.html)를 참조하십시오 .