3 ms·
The one I wrote, for Bash, uses SIGALRM (via the Time::HiRes perl module) to time out after half a second: http://github.com/paulbaumgart/git-situational-awaren
by paulbaumgart 16y ago
The one I wrote, for Bash, uses SIGALRM (via the Time::HiRes perl module) to time out after half a second: http://github.com/paulbaumgart/git-situational-awareness http://github.com/paulbaumgart/git-situational-awareness
- bostonvaulter2 16y agoIt would be cool to do the opposite as well, don't start checking the fancy vcs stuff until 1/2 second after the prompt is loaded.
- paulbaumgart 16y agoAgreed. I don't think Bash allows async function execution, though.
- silentbicycle 16y agoIt seems a lot simpler to just type "git br" (or, heck, "gb") when I care. Usually I have a good reason for being in a particular branch, though I tend to check before doing merging anyway. When I want to fiddle with minor configuration details, hey, bash and zsh users have nothing on emacs. ;)