本文介绍了oh-my-zsh无法在Mac上启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 http://ohmyz.sh/中的建议安装了oh-my-zsh.仅供参考,

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

只有当我输入"zsh"时,我才能看到oh-my-zsh提示符,如:

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

[~]$ zsh
➜  ~ 

此外,我尝试将默认的shell更改为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

启动Mac终端时如何直接使用oh-my-zsh?

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

推荐答案

不仅在系统偏好设置">用户和组"> ...>用户配置文件"的shell设置中,而且在Mac的终端>首选项">"ChosenProfile">"Shell"部分中,必须将/bin/bash更改为/bin/zsh.在那之后,它起作用了!谢谢@RemyJ!

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!

这篇关于oh-my-zsh无法在Mac上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 14:23