Skip to content

Instantly share code, notes, and snippets.

@lena
Forked from amadden80/colors_bash_profile
Last active August 29, 2015 14:00
Show Gist options
  • Save lena/11197657 to your computer and use it in GitHub Desktop.
Save lena/11197657 to your computer and use it in GitHub Desktop.
# In terminal:
# curl https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
# Copy the following lines into ~/.bash_profile
source ~/.git-prompt.sh
# prompt colors
# "username@hostname:"
PS1="\n\e[34;01m\u\e[0m@\e[31;01m\h\e[0m:"
# "path/to/where/you/are"
PS1="$PS1\e[32;01m\w\e[0m"
# "(git branch)"
PS1="$PS1\[\033[1;33m\]\[\033[1;37m\]\$(__git_ps1)"
# "\n $"
PS1="$PS1 \n\$ \[$(tput sgr0)\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment