Skip to content

Instantly share code, notes, and snippets.

@arieh
Last active August 29, 2015 13:56
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 arieh/9341903 to your computer and use it in GitHub Desktop.
Save arieh/9341903 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~/
mkdir .git-completion
wget -O ./.git-completion/prompt.sh https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh --no-check-certificate
wget -O ./.git-completion/completion.sh https://raw.github.com/git/git/master/contrib/completion/git-completion.bash --no-check-certificate
echo "
#git completion
source ~/.git-completion/completion.sh
source ~/.git-completion/prompt.sh
PS1='[\u@\h \W\$(__git_ps1 \" (%s)\")]\$ '
GIT_PS1_SHOWDIRTYSTATE=true" >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment