[英]How to completely remove zsh (oh-my-zsh) from Mac M1 (MacOS Monterey)
I have tried to run:我试图运行:
uninstall_oh_my_zsh
but i get a message stating that: -bash: uninstall_oh_my_zsh: command not found但我收到一条消息,指出: -bash: uninstall_oh_my_zsh: command not found
Other commands i have tried are:我尝试过的其他命令是:
chmod +x ~/.oh-my-zsh/tools/uninstall.sh
I get a response stating that: No such file or directory我收到回复说:没有这样的文件或目录
sh ~/.oh-my-zsh/tools/uninstall.sh sh ~/.oh-my-zsh/tools/uninstall.sh
Ran:然:
chsh -s /bin/bash
To change default terminal from /bin/zsh to /bin/bash将默认终端从/bin/zsh更改为/bin/bash
I also tried:我也试过:
rm -rf ~/.oh-my-zsh
rm ~/.zshrc
cp ~/.zshrc.pre-oh-my-zsh ~/.zshrc
source ~/.zshrc
None of them have worked thus far, when i open my terminal.到目前为止,当我打开我的终端时,它们都没有工作。 I get a message stating that: The default interactive shell is now zsh.
我收到一条消息,指出:默认的交互式 shell 现在是 zsh。 To update your account to use zsh, please run
chsh -s /bin/zsh
要更新您的帐户以使用 zsh,请运行
chsh -s /bin/zsh
You don't have Oh My Zsh (a set of configuration files for zsh
and a way to manage them) installed in the first place.首先,您没有安装 Oh My Zsh(
zsh
的一组配置文件和管理它们的方法)。
The warning is coming from /bin/bash
itself;警告来自
/bin/bash
本身; it's hard-coded into the executable supplied by macOS.它被硬编码到 macOS 提供的可执行文件中。
$ strings /bin/bash | grep "default interactive shell"
The default interactive shell is now zsh.
Though they don't say so, I suspect the warning is there because they plan to remove bash
from future versions of macOS entirely.尽管他们没有这么说,但我怀疑警告是存在的,因为他们计划从未来版本的 macOS 中完全删除
bash
。 They stopped providing newer versions of bash
years ago.他们在几年前停止提供
bash
的更新版本。
Your default shell is already /bin/bash
;您的默认 shell已经是
/bin/bash
; the warning is recommending that you switch to /bin/zsh
.该警告建议您切换到
/bin/zsh
。
You can continue to use bash
, though I recommend installing a newer version (3.2 is old ) using something like Homebrew, then changing your login shell to the new version.您可以继续使用
bash
,但我建议使用 Homebrew 之类的软件安装更新版本(3.2 是旧版本),然后将您的登录名 shell 更改为新版本。
However, unless you are really committed to using bash
, I suggest given zsh
a try.但是,除非您真的致力于使用
bash
,否则我建议您尝试一下zsh
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.