禁用ohmyzsh自动更新


现象

每天第一次打开mac的终端时,最会卡一会儿才会进入ohmyzsh,再次打开则很快。发现这是ohmyzsh在自动检查更新,将自动更新检查关闭了就OK了。

打开个人目录下的ohmyzsh(zsh) 的配置文件: ~/.zshrc

找到DISABLE_AUTO_UPDATE一行,将行首的注释'#'去掉,则可禁用ohmyzsh 自动检查更新。

 

PS:如果想手动检查更新,可以手动执行

➜ ~ upgrade_oh_my_zsh
Updating Oh My Zsh
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 5 (delta 3), reused 4 (delta 2), pack-reused 0
展开对象中: 100% (5/5), 完成.
来自 https://github.com/robbyrussell/oh-my-zsh
* branch master -> FETCH_HEAD
a2995014..fabee559 master -> origin/master
更新 a2995014..fabee559
Fast-forward
plugins/ssh-agent/ssh-agent.plugin.zsh | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
当前分支 master 是最新的。
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/
Hooray! Oh My Zsh has been updated and/or is at the current version.
To keep up on the latest news and updates, follow us on twitter: https://twitter.com/ohmyzsh
Get your Oh My Zsh swag at: https://shop.planetargon.com/

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM