Created
January 20, 2012 14:41
-
-
Save SirPepe/1647642 to your computer and use it in GitHub Desktop.
Git-Branch im Terminal anzeigen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}]") \$ ' |
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
http://wunjo.org/zsh-git/ Kennste?