Created
December 15, 2013 19:12
-
-
Save tarrsalah/7976856 to your computer and use it in GitHub Desktop.
My sexy prompt
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| # Colors | |
| Black="$(tput setaf 0)" | |
| BlackBG="$(tput setab 0)" | |
| DarkGrey="$(tput bold ; tput setaf 0)" | |
| LightGrey="$(tput setaf 7)" | |
| LightGreyBG="$(tput setab 7)" | |
| White="$(tput bold ; tput setaf 7)" | |
| Red="$(tput setaf 1)" | |
| RedBG="$(tput setab 1)" | |
| LightRed="$(tput bold ; tput setaf 1)" | |
| Green="$(tput setaf 2)" | |
| GreenBG="$(tput setab 2)" | |
| LightGreen="$(tput bold ; tput setaf 2)" | |
| Brown="$(tput setaf 3)" | |
| BrownBG="$(tput setab 3)" | |
| Yellow="$(tput bold ; tput setaf 3)" | |
| Blue="$(tput setaf 4)" | |
| BlueBG="$(tput setab 4)" | |
| LightBlue="$(tput bold ; tput setaf 4)" | |
| Purple="$(tput setaf 5)" | |
| PurpleBG="$(tput setab 5)" | |
| Pink="$(tput bold ; tput setaf 5)" | |
| Cyan="$(tput setaf 6)" | |
| CyanBG="$(tput setab 6)" | |
| LightCyan="$(tput bold ; tput setaf 6)" | |
| NC="$(tput sgr0)" # No Color | |
| export PS1="$LightCyan\u$White:$LightRed\w$Yellow\$(parse_git_branch)$LightGreen\n λ $NC" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment