Created
December 10, 2014 17:33
-
-
Save symlink/376b27338d0db8610129 to your computer and use it in GitHub Desktop.
Bash 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
BLACK="\[\033[0;30m\]" | |
BLUE="\[\033[0;34m\]" | |
GREEN="\[\033[0;32m\]" | |
CYAN="\[\033[0;36m\]" | |
RED="\[\033[0;31m\]" | |
PURPLE="\[\033[0;35m\]" | |
BROWN="\[\033[0;33m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
DARK_GRAY="\[\033[0;30m\]" | |
LIGHT_BLUE="\[\033[0;36m\]" | |
LIGHT_GREEN="\[\033[0;32m\]" | |
LIGHT_CYAN="\[\033[0;36m\]" | |
LIGHT_RED="\[\033[0;31m\]" | |
LIGHT_PURPLE="\[\033[0;35m\]" | |
YELLOW="\[\033[0;33m\]" | |
WHITE="\[\033[0;37m\]" | |
NO_COLOR="\[\033[0m\]" | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status | |
GIT_PROMPT_START="$LIGHT_RED($LIGHT_GREEN\W$LIGHT_RED)$LIGHT_PURPLE$NO_COLOR" | |
GIT_PROMPT_END="\n${TITLEBAR}$LIGHT_RED[$DARK_GRAY\u$LIGHT_GRAY@$DARK_GRAY\H$LIGHT_RED] $> $NO_COLOR" | |
# as last entry source the gitprompt script | |
# GIT_PROMPT_THEME=Custom # use custom .git-prompt-colors.sh | |
# GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme | |
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then | |
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" | |
else | |
PS1="${TITLEBAR}$LIGHT_RED[$LIGHT_PURPLE\u$LIGHT_RED@$LIGHT_RED\H: $LIGHT_BLUE\W $LIGHT_RED] $LIGHT_PURPLE\$>$NO_COLOUR " | |
export PS1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment