macos - oh-my-zsh无法在Mac上启动

标签 macos oh-my-zsh

我按照http://ohmyz.sh/的建议安装了oh-my-zsh。
供引用,

[~]$ 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提示符,如下所示:
[~]$ zsh
➜  ~ 

另外,我尝试将默认的shell更改为zsh:
[~]$ chsh -s /bin/zsh
Changing shell for myUserName.
Password for myUserName: 
chsh: no changes made

每当我启动mac终端时,如何直接使用oh-my-zsh?

最佳答案

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

关于macos - oh-my-zsh无法在Mac上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39736054/

相关文章:

zsh - 让 zsh 返回不区分大小写的自动完成匹配,但更喜欢精确匹配

github - 想家: sync modified zsh themefiles

macos - 在新窗口中打开 View 的按钮 SwiftUI 5.3 for Mac OS X

php - 在 MacOSX 10.10 (yosemite) 上编译 php5.5.18 时出错

windows - 属性错误 : 'module' object has no attribute 'testmod' Python doctest

homebrew - 在 .zshrc 中设置 ZSH_DISABLE_COMPFIX=true 不起作用

macos - zsh:权限被拒绝:gam

oh-my-zsh - Windows 终端 + oh-my-posh 不显示 git 状态

macos - OSX上/tmp中的Docker卷为空

macos - Mac 应用程序中的“确定”警报按钮不起作用