oh-my-zsh does not start on mac

跟風遠走 提交于 2019-12-04 23:04:31

问题


I installed oh-my-zsh as suggested in http://ohmyz.sh/. FYI,

[~]$ zsh --version
zsh 5.0.8 (x86_64-apple-darwin15.0)
[~]$ echo $SHELL
/bin/zsh
[~]$ ls .oh-my-zsh/
LICENSE.txt  cache        lib          oh-my-zsh.sh templates    tools
README.md    custom       log          plugins      themes

Only when I type "zsh" then I can see the oh-my-zsh prompt like:

[~]$ zsh
➜  ~ 

Also, I tried to change my default shell to zsh:

[~]$ chsh -s /bin/zsh
Changing shell for myUserName.
Password for myUserName: 
chsh: no changes made

How can I use directly oh-my-zsh whenever I start mac terminal?


回答1:


Not only in System Pref>User and Group>...>User profile's shell settings, but also in Mac's terminal>Preference>ChosenProfile>Shell section, I had to change /bin/bash to /bin/zsh. after that, it works! Thank you, @RemyJ!




回答2:


You have to change the default shell to zsh.
To do so use the following command.

chsh -s /bin/zsh
restart your terminal

I took it from here.
These were the steps I followed when I installed zsh.
I hope it will help you as well.




回答3:


Also, I tried to change my default shell to zsh: [~]$ chsh -s /bin/zsh

try

chsh -s $zsh

that worked fine for me



来源:https://stackoverflow.com/questions/39736054/oh-my-zsh-does-not-start-on-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!