나는 어느 시점에서 내가 엉망이되어 .bash_profile
지금 여러 개가 있다고 생각 합니다. 쉘을 커스터마이즈하려고하는데 어느 .bash_profile
것이 사용되어야 하는지 잘 모르겠습니다 . .bashrc
파일이 더 자주 사용 되었다고 생각 했습니까?
OSX를 실행 중입니다-El Capitan
ls -la | more
total 480
-rw------- 1 Matthew staff 6404 Feb 16 23:57 .bash_history
-rw-r--r-- 1 Matthew staff 719 Jan 19 20:18 .bash_profile
-rw-r--r-- 1 Matthew staff 335 Oct 7 12:35 .bash_profile.macports-saved_2017-01-19_at_20:18:05
-rw-r--r-- 1 Matthew staff 167 Jul 16 2015 .bash_profile.pysave
drwxr-xr-x 208 Matthew staff 7072 Feb 18 19:41 .bash_sessions
답변
아니요, 하나만 있으며이라고 .bash_profile
합니다. Bash는 추가 접미사가있는 것을 읽지 않습니다.
다른 .bash_profile.*
파일은 다른 소프트웨어 설치 (작년과 그 전 해)에 의해 생성 된 백업처럼 보입니다. diff -u
당신 .bash_profile
과 다른 사람 사이 에 차례를 달리고 (원하는 경우) 그들과 다른 점을 확인하십시오.
$ diff -u .bash_profile .bash_profile.pysave
.bashrc
대화식 쉘에서 .bash_profile
사용되며 로그인 쉘에 사용됩니다. 당신이 별칭을 추가하는 경우에 추가 .bashrc
.
” ~ / .profile, ~ / .bashrc, ~ / .bash_profile, ~ / .gnomerc, / etc / bash_bashrc, / etc / screenrc …의 차이점은 무엇입니까? “도 참조하십시오.