EtC
macos 기본 쉘 변경
freecatz
2022. 5. 10. 10:59
터미널 실행시 기본 쉘이 zsh 변경이 되었다는 아래의 메세지가 나타난다.
Last login: Tue May 10 10:26:44 on ttys000 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. freecatz:~ $ |
위의 메세지가 보기 싫어 zsh 로 변경 하고자 한다면, 아래의 명령어로 bash 에서 zsh 로 변경이 가능 하다.
freecatz:~ $ chsh -s /bin/zsh Changing shell for freecatz. Password for freecatz: freecatz:~ $ |
bash의 사용을 유지 하고, zsh 가 기본 쉘로 변경 되었다는 메세지만 보고 싶지 않은 경우 ~/.bash_profile 이나 ~/.bashrc 파일에
#/bin/bash
export BASH_SILENCE_DEPRECATION_WARNING=1
.. 중략 ...
를 추가 하도록 한다. 시스템에 설치되어 있는 쉘 목록은 아래의 명령어로 확인이 가능 하다.
freecatz:~ $ cat /etc/shells # List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. /bin/bash /bin/csh /bin/dash /bin/ksh /bin/sh /bin/tcsh /bin/zsh |