1

优化 oh my zsh on Windows 启动速度

 2 years ago
source link: http://i.lckiss.com/?p=7578
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

优化 oh my zsh on Windows 启动速度

2021-11-24

git bash 配置完 oh my zsh 后能用还是能用,就是卡,慢,但也就偶尔用用所以没管,今天想起来查了下,主要原因还是在于 git。

官方有给一个配置项,在 .zshrc ,默认是注释状态,放开即可:

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"

但我还是觉得如隔靴搔痒,后来找了很多,大多数是执行这两行代码:

git config --global --add oh-my-zsh.hide-status 1
git config --global --add oh-my-zsh.hide-dirty 1
git config --global --replace-all oh-my-zsh.hide-status 1
git config --global --replace-all oh-my-zsh.hide-dirty 1

但问题在于,这两行代码不知为何根本无法执行下去。所以,至今为止,暂未找到更合适的解法,如有有还请告知下,谢谢。

https://github.com/hsab/WSL-config/issues/1


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK