We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
感觉最近 Oh my zsh 更新有点频繁,每次打开都询问是否更新,再加上更新也比较慢,干脆关闭自动更新。
Oh my zsh
首先打开 Oh my zsh 的配置文件
vim vim ~/.zshrc
找到 DISABLE_AUTO_UPDATE="true"(老版本是这个) 这行,可以看到是被注释了的,把注释去掉即可
DISABLE_AUTO_UPDATE="true"
现在最新版的zsh需要找到 zstyle ':omz:update' mode disabled,把注释去掉(去掉最左边的 #)即可
zsh
zstyle ':omz:update' mode disabled
#
通过敲下 / 开启搜索,后面输入搜索关键字然后回车,可以快速定位
/
找到之后敲下 i 开启插入模式,把注释去掉。
i
最后按下 esc,输入:wq(write & quit)后回车,保存退出即可
esc
:wq
这里顺带说明下几种更新模式
zstyle ':omz:update' mode auto
zstyle ':omz:update' mode reminder
如下命令可以手动更新
vim omz update
转自:https://juejin.cn/post/6923448225571700750
The text was updated successfully, but these errors were encountered:
No branches or pull requests
感觉最近
Oh my zsh
更新有点频繁,每次打开都询问是否更新,再加上更新也比较慢,干脆关闭自动更新。首先打开
Oh my zsh
的配置文件vim vim ~/.zshrc
找到DISABLE_AUTO_UPDATE="true"
(老版本是这个) 这行,可以看到是被注释了的,把注释去掉即可现在最新版的
zsh
需要找到zstyle ':omz:update' mode disabled
,把注释去掉(去掉最左边的#
)即可通过敲下
/
开启搜索,后面输入搜索关键字然后回车,可以快速定位找到之后敲下
i
开启插入模式,把注释去掉。最后按下
esc
,输入:wq
(write & quit)后回车,保存退出即可这里顺带说明下几种更新模式
zstyle ':omz:update' mode disabled
完全禁用自动更新zstyle ':omz:update' mode auto
自动更新且没有确认提示zstyle ':omz:update' mode reminder
如果有更新,每隔几天提供一次提醒如下命令可以手动更新
转自:https://juejin.cn/post/6923448225571700750
The text was updated successfully, but these errors were encountered: