Created
August 31, 2022 18:19
-
-
Save tangoslee/2d907c22371371ef77b69074269a7e04 to your computer and use it in GitHub Desktop.
git for bash
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