当我尝试使用cd命令导航目录时,需要很长时间。终端建议创建一个配置文件来增加超时。当我的终端挂起时,我的意思是当我试图执行命令时,光标一直闪烁,但什么也没有发生,甚至ctrl+c也没有效果,我不得不重新启动。但缓慢的终端机仍在继续。我注意到,这种延迟问题只发生在cd命令上。
~ on ☁️ (us-east-2)
❯ cd Cloud/
[WARN] - (starship::utils): Executing command "/usr/bin/git" timed out.
[WARN] - (starship::utils): You can set command_timeout in your config to a higher value to allow longer-running commands to keep executing.
Cloud on main on ☁️ (us-east-2)
❯
发布于 2022-05-24 14:50:32
消息很清楚,您只需设置一个超时:
在~/.config/starship.toml
内部(如果它不存在,可以创建它),您可以这样设置超时:
command_timeout = 10000
然后更新或重新安装星际飞船:
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
发布于 2022-11-01 23:17:33
我在mac上,我通过用自制软件重新安装xcode来修复这个问题。我执行了命令
brew install xcode
它解决了我的问题。
https://askubuntu.com/questions/1398483
复制相似问题