Last active
August 29, 2015 14:05
-
-
Save bananu7/19b94348129a07bc6984 to your computer and use it in GitHub Desktop.
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
# use if you don't have git bash completion | |
#alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'" | |
PS_USER_MACHINE='\u@\h' | |
PS_DIRECTORY='\w' | |
PS_BLACK="\[\033[30m\]" | |
PS_RED="\[\033[31m\]" | |
PS_GREEN="\[\033[32m\]" | |
PS_YELLOW="\[\033[33m\]" | |
PS_BLUE="\[\033[34m\]" | |
PS_MAGENTA="\[\033[35m\]" | |
PS_CYAN="\[\033[36m\]" | |
PS_WHITE="\[\033[00m\]" | |
PS_BRIGHT="\[\033[1m\]" | |
BBLK="\[\033[40m\]" # background black | |
BRED="\[\033[41m\]" # background red | |
BGRN="\[\033[42m\]" # background green | |
BYEL="\[\033[43m\]" # background yellow | |
BBLE="\[\033[44m\]" # background blue | |
BMAG="\[\033[45m\]" # background magenta | |
BCYN="\[\033[46m\]" # background cyan | |
BWHT="\[\033[47m\]" # background white | |
export PS1= | |
PS1+='\n' | |
PS1+=${PS_GREEN} | |
PS1+=${PS_USER_MACHINE} | |
PS1+=' ' | |
PS1+=${PS_YELLOW} | |
PS1+=${PS_DIRECTORY} | |
PS1+=' ' | |
PS1+=${PS_BLUE} | |
PS1+="\$(__git_ps1)" | |
PS1+=${PS_WHITE} | |
PS1+=$'\n' # this trick escapes newline properly | |
PS1+='$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment