__git_ps1 extremely slow in kernel tree

前端 未结 6 1272
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 03:59
$ time __git_ps1
((v2.6.33.4))
real    0m1.467s
user    0m0.864s
sys  0m0.564s

It\'s making my prompt unusable; on the other hand, though, it\'s too us

6条回答
  •  你的背包
    2021-02-01 04:41

    To fix this just add this in your .bashrc

    export GIT_PS1_SHOWDIRTYSTATE=
    export GIT_PS1_SHOWUNTRACKEDFILES=
    

    Will disable some files look-ups.

提交回复
热议问题