-
-
Save lena/11197657 to your computer and use it in GitHub Desktop.
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
# 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