Skip to content

Instantly share code, notes, and snippets.

View kerphi's full-sized avatar

Stéphane Gully kerphi

  • Abes
  • Montpellier
View GitHub Profile
kerphi / profile
Last active August 29, 2015 14:04 — forked from wolever/profile
# prompt examples:
# [3 jobs master virtualenv] ~/code/myproject/foo
# [1 job my-branch virtualenv] ~/code/bar/
# [virtualenv] ~/code/
# ~
# Very, very fast, only requiring a couple of fork()s (and no forking at all to determine the current git branch)
# 100% pure Bash (no forking) function to determine the name of the current git branch
gitbranch() {
export GITBRANCH=""