Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- ubuntu
- PYTHON
- appium server
- 실행권한
- centos
- nmap
- rethinkdb
- nohup
- insert
- openpyxl
- sshpass
- GoCD
- STF_PortForwarding
- appium
- kitura
- SWIFT
- 28015
- Materials
- postgresql
- ssh
- ftp
- nGrinder
- port forwarding
- create table
- postgres
- Jupyter Notebook
- STF
- mysql
- perfect
- Jupyter
Archives
- Today
- Total
don't stop believing
zsh 설치 후 .bash_profile 적용 본문
Mac에서 Terminal을 열다 아무생각없이 zsh을 설치한 이후 .bash_profile에 지정한 내용이 반영되지 않았습니다.
처음에는 왜 적용이 안되지 하고 source ~/.bash_profile을 적용해서 사용했는데 Terminal을 열때마다 해줘야 해서 귀찮아 졌습니다.
그제서야 찾아봤습니다.
Bash vs Zsh: A comparison of two command line shells (2019 Update)
Terminal을 열면 위 이미지처럼 상단 바에 -zsh로 되어 있습니다.
zsh은 Terminal이 시작할 때 ~/.zshrc가 실행됩니다. 그래서 .zshrc 파일을 만들고 아래처럼 .bash_profile이 실행되도록 추가했습니다.
if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi
이제 Terminal을 열때마다 source .bash_profile 명령을 안해줘도 됩니다.
.zshrc 파일안에 .bash_profile의 내용을 옮겨줘도 됩니다.
'Linux > Mac' 카테고리의 다른 글
brew로 python downgrade 하기 (3.7 -> 3.6.5) (0) | 2018.08.27 |
---|---|
Mac에서 hosts 파일 변경 (0) | 2017.12.26 |
nmap으로 네트워크 내 특정 포트 찾기 (0) | 2017.12.22 |
자주 사용하는 Mac 단축키 (0) | 2017.11.12 |
터미널 깔끔하게 설정하기 (0) | 2017.11.10 |
Comments