Skip to content

Instantly share code, notes, and snippets.

@lauren
Created October 12, 2017 21:42
Show Gist options
  • Save lauren/789cf9d2a516a05fc58117d30cedbd15 to your computer and use it in GitHub Desktop.
Save lauren/789cf9d2a516a05fc58117d30cedbd15 to your computer and use it in GitHub Desktop.
pretty git prompt
output: application (master) ⛸️
PS1='\e[0;35m\W\e[m$(__git_ps1 " \e[0;32m(%s)")\e[m ⛸️ '
For use with: https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
Prompt prettiness references:
* data: https://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
* color: https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment