Last active
November 28, 2018 03:40
-
-
Save tangoslee/399502b944af9ee8f643a3ece032af14 to your computer and use it in GitHub Desktop.
bash for git
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
#!/bin/sh | |
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -O ~/.git-completion.bash | |
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -O ~/.git-prompt.sh | |
cat<<EOF >> ~/.bashrc | |
source ~/.git-completion.bash | |
source ~/.git-prompt.sh | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export PS1='\[\033[36m\]\w\[\033[33;1m\]\$(__git_ps1 " (%s)")\[\033[m\]\$ ' | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment