如何在没有任何自定义的情况下 运行 zsh?

How to run zsh without any customizations?

我想 运行 Zsh 而不加载任何我的 .zshrc、Oh-my-zsh 等等,就像我没有任何自定义的全新安装一样。 (喜欢emacs -q。)

这有什么标志吗?否则,我可以为它设置某种 "profile" 吗?

引用自 zsh 联机帮助页:

Commands are first read from /etc/zshenv; this cannot be overridden. Subsequent behaviour is modified by the RCS and GLOBAL_RCS options; the former affects all startup files, while the second only affects global startup files (those shown here with an path starting with a /). If one of the options is unset at any point, any subsequent startup file(s) of the corresponding type will not be read. It is also possible for a file in $ZDOTDIR to re-enable GLOBAL_RCS. Both RCS and GLOBAL_RCS are set by default.

[1] http://zsh.sourceforge.net/Doc/Release/Files.html

我猜你只是想禁用你的配置文件,所以你应该取消设置 RCS 选项。这可以通过 运行 zsh -o NO_RCSzsh -f / zsh --no-rcs.

来完成