oh-my-zsh 没有在 mac 上启动
oh-my-zsh does not start on mac
我按照 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 更改为 zsh。
为此,请使用以下命令。
chsh -s /bin/zsh
重新启动您的终端
我从 here.
拿来的
这些是我安装 zsh 时遵循的步骤。
我希望它也能帮助你。
不仅在 System Pref>User and Group>...>User profile 的 shell 设置中,而且在 Mac's terminal>Preference>ChosenProfile>Shell 部分,我不得不将 /bin/bash 更改为 /bin/zsh。在那之后,它起作用了!谢谢@RemyJ!
Also, I tried to change my default shell to zsh:
[~]$ chsh -s /bin/zsh
尝试
chsh -s $zsh
对我来说效果很好
我有一个类似的问题,但我 通过在终端中执行命令 chsh -s /bin/zsh
解决了它 ,然后导航到
Terminal -> Preferences -> General window
并将 Shells open with: 选项更改为 Default login shell 而 command (完整路径) 设置为 /bin/zsh。这应该可以解决您的问题。
运行 终端中的以下内容:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
我按照 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 更改为 zsh。
为此,请使用以下命令。
chsh -s /bin/zsh
重新启动您的终端
我从 here.
拿来的
这些是我安装 zsh 时遵循的步骤。
我希望它也能帮助你。
不仅在 System Pref>User and Group>...>User profile 的 shell 设置中,而且在 Mac's terminal>Preference>ChosenProfile>Shell 部分,我不得不将 /bin/bash 更改为 /bin/zsh。在那之后,它起作用了!谢谢@RemyJ!
Also, I tried to change my default shell to zsh: [~]$ chsh -s /bin/zsh
尝试
chsh -s $zsh
对我来说效果很好
我有一个类似的问题,但我 通过在终端中执行命令 chsh -s /bin/zsh
解决了它 ,然后导航到
Terminal -> Preferences -> General window
并将 Shells open with: 选项更改为 Default login shell 而 command (完整路径) 设置为 /bin/zsh。这应该可以解决您的问题。
运行 终端中的以下内容:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"