macos bash zsh 切換 設置環境變量
1,macos bash zsh 切換 設置環境變量
- 查看shell
╰─➤ 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
2,shell切換
- 切換到zsh
chsh -s /bin/zsh
- 切換到bash
chsh -s /bin/bash
3,zsh環境變量
vim .zshrc
參考: