Skip to content

Instantly share code, notes, and snippets.

@SirPepe
Created January 20, 2012 14:41
Show Gist options
  • Select an option

  • Save SirPepe/1647642 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

@SirPepe
Copy link
Copy Markdown
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