Hacker News new | past | comments | ask | show | jobs | submit login

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



It 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. ;)


It 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.


Agreed. I don't think Bash allows async function execution, though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: