2014-07-05 6 views
0

Macport가 $ PATH를 설정하는 유일한 방법은 ~/.bash_profile 또는 ~/.profile입니다. 나는 ~/.bashrc가 없다는 것을 확인했다. 그러나 주석 라인 출력 후 :

#export PATH=/opt/local/bin:/opt/local/sbin:$PATH 

나는 여전히 내 $ PATH에/옵션/지방/빈을 가지고

$echo $PATH 
/opt/local/bin:/opt/local/sbin:/usr/local/texlive/2012/bin/x86_64-darwin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin 

내가 다른 macport 내 PATH 변수를 변경 한 경우 궁금하고, 그 이후에해야한다 ~/.bash_profile에 경로 시작 부분에 texlive 경로를 추가했기 때문에 ~/.bash_profile을로드했습니다.

/etc/profile 
/etc/bashrc 
~/.bash_profile 

그것은 그 중 하나이어야한다 : 다음과 같이 실행 파일의 순서는 대화 형 bash는 터미널을 시작 OSX에

+3

터미널을 종료했다가 다시 시작 했습니까? –

답변

0

입니다. 내 .bash_profilemacports으로 남겨진 의견이 있습니다.