Skip to content

Instantly share code, notes, and snippets.

@cad-san
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cad-san/9869823 to your computer and use it in GitHub Desktop.
Save cad-san/9869823 to your computer and use it in GitHub Desktop.
cygwinで __git_ps1を利用するための設定
# Terminal Color Setting
if [ -f /etc/bash_completion.d/git-prompt.sh ] ; then
source /etc/bash_completion.d/git-prompt.sh
PS1='\[\033[1;34m\]\u@\h:\[\033[0;33m\]\w$(__git_ps1)\[\033[0m\]\n\$'
else
PS1="\[\033[1;34m\]\u@\h:\[\033[0;33m\]\w\[\033[0m\]\n\$"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment