有时更改目录(通过终端)会启动git进程,该进程会占用100%的 CPU 时间,并且长达 5-6 秒,在此期间我的控制台完全没有响应。
\n\n当我导航到该目录时,并非每次都会发生这种情况,但一天中会发生几次。
\n\n5-7秒后,git进程消失,我进入目录
\n\n有任何想法吗?
\n\n我的~.zshrc在这里
\n\n\xe2\x9e\x9c Config git:(develop) uname -a \nLinux dmitry 4.13.4-200.fc26.x86_64 #1 SMP Thu Sep 28 20:46:39 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\n\xe2\x9e\x9c Config git:(develop) zsh --version \nzsh 5.3.1 (x86_64-redhat-linux-gnu)\n\xe2\x9e\x9c Config git:(develop) \n\xe2\x9e\x9c Config git:(develop) bash --version\nGNU bash, version 4.4.12(1)-release (x86_64-redhat-linux-gnu)\nRun Code Online (Sandbox Code Playgroud)\n docker run --rm --cap-drop=net_bind_service --publish 8080:80 --name nginx nginx
ps --forest -fC nginx
UID PID PPID C STIME TTY TIME CMD
root 449870 449847 0 12:38 ? 00:00:00 nginx: master process nginx -g daemon off;
101 449929 449870 0 12:38 ? 00:00:00 \_ nginx: worker process
101 449930 449870 0 12:38 ? 00:00:00 \_ nginx: worker process
101 449931 449870 0 12:38 ? 00:00:00 \_ nginx: worker process
101 449932 449870 0 12:38 ? 00:00:00 \_ nginx: worker process
101 …Run Code Online (Sandbox Code Playgroud)