Skip to content

Instantly share code, notes, and snippets.

@SirPepe
Created January 20, 2012 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirPepe/1647642 to your computer and use it in GitHub Desktop.
Save SirPepe/1647642 to your computer and use it in GitHub Desktop.
Git-Branch im Terminal anzeigen
# Git-Branch im Terminal anzeigen und den Lambda-Hacker raushängen lassen
underline=`tput smul`
nounderline=`tput rmul`
bold=`tput bold`
normal=`tput sgr0`
GIT_PS1_SHOWDIRTYSTATE=1
PS1='${bold}λ ${normal}\w$(__git_ps1 " [${underline}%s${nounderline}]") \$ '
@erlehmann
Copy link

@SirPepe
Copy link
Author

SirPepe commented Jan 25, 2012

Scrollte an mir vorbei, macht mir aber zu viel. Ich brauche keine Discobeleuchtung, will nur den Branch wissen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment