mac切换bash到zsh
2020-03-10 本文已影响0人
DXYang
chsh -s /bin/zsh 没有生效
chsh: no changes made
解决方法
dscl . -read /Users/$USER/ UserShell
exec su - $USER
image.png
切换回bash
chsh -s /bin/bash
dscl命令:
https://www.4455q.com/tech/mac-dscl-user-group-create-delete-append.html