Created
August 26, 2016 04:45
-
-
Save jooeycheng/6f19cc8cef864e899afffa0866c75d2b to your computer and use it in GitHub Desktop.
custom ubuntu bash prompt
This file contains 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
# custom bash, copied from Vagabond box | |
bind 'set completion-ignore-case on' | |
GIT_PS1_SHOWDIRTYSTATE=1 # displays * or + | |
GIT_PS1_SHOWSTASHSTATE=1 # displays $ | |
GIT_PS1_SHOWUNTRACKEDFILES=1 # displays % | |
GIT_PS1_SHOWUPSTREAM='auto' # displays <, >, <> or = | |
GIT_PS1_SHOWCOLORHINTS=1 | |
GIT_PS1_DESCRIBE_STYLE='contains' | |
RESET="\[\033[0m\]" | |
GRAY="\[\033[38;5;248m\]" | |
YELLOW="\[\033[38;5;227m\]" | |
BOLD="\e[1m" | |
BEFORE_GIT_PS1="$GRAY\t $BOLD\u@\h:$RESET$YELLOW\w$RESET" | |
AFTER_GIT_PS1="$GRAY\n\! \$ $RESET" | |
GIT_PS1_CMD='__git_ps1 "$BEFORE_GIT_PS1" "$AFTER_GIT_PS1"' | |
PROMPT_COMMAND="$GIT_PS1_CMD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment