Unterhaltung
Nachrichten
-
__git_ps1 takes forever to return in certain directories. I need to decide on a suitable way to make it time out. Just putting timeout in front of it doesn't work, as it's a bash function and timeout is an external…
-
Oh! Wait.
[ "$(git config --bool bash.showDirtyState)" != "false" ]
So actually I can just configure the git repo? They already thought of that? Neat. -
It works! Neato!Just git config bash.showDirtyState false in any git repo that has a huge number of files checked out, and your git PS1 will always be snappy.I wish I had invested these five minutes months ago! But…
-