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
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
本文标题:mac切换bash到zsh
本文链接:https://www.haomeiwen.com/subject/cwmgdhtx.html
网友评论