Skip to content

Setting Git Prompt

Zhamri Che Ani edited this page Nov 11, 2017 · 1 revision

Go to:

Create file .git-prompt.sh

  • Paste ALL

Create file .bachrc

source ~/.git-prompt.sh
export PS1='$(__git_ps1 "(%s)") \W $ '

Create file .bash_profile

export CLICOLOR=1
if [ -f ~/.bashrc ]; then
 	source ~/.bashrc
fi