
7

cd/ls 某个安卓源码文件夹特别慢,有人碰到吗?
source link: https://www.v2ex.com/t/822534
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.

MBP➜ cd A133_10.0Rom ll
cd 或 ls 命令访问安卓源码文件夹,大概要卡个 20 分钟,是不是权限的原因?
换成 Ubuntu 系统,cd/ls 命令一样非常慢。
第 1 条附言 · 22 小时 22 分钟前
oh my zsh 导致的,chsh -s /bin/bash
改为 bash 后, 速度正常了
改为 bash 后, 速度正常了
15 条回复 • 2021-12-16 23:05:34 +08:00
Mithril 1 天前
@zinwalin 没说清,我的意思是你的 shell 。就像 4 楼说的,omz 会有个 git 插件,在你进入代码库的时候在命令提示上显示分支名和状态。
那个功能就绑定在 cd 里,如果你代码库比较大,cd 进去就得卡半天。
那个功能就绑定在 cd 里,如果你代码库比较大,cd 进去就得卡半天。
kidonng 23 小时 14 分钟前 via Android
如果源码是 Git clone 下来的,估计是 shell 装了设计不佳的 Git 插件导致的。可以换支持异步更新的插件,或者速度快的同步插件(如 Starship )。
asmoker 16 小时 56 分钟前
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK