Last active
December 27, 2015 10:59
-
-
Save saihoooooooo/7315407 to your computer and use it in GitHub Desktop.
Git setting for bash.
This file contains hidden or 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/bash | |
| curl -oL https://raw.github.com/git/git/master/contrib/completion/git-completion.bash ~/git-completion.bash | |
| curl -oL https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh ~/git-prompt.sh | |
| cat >> ~/.bashrc << \EOF | |
| # Completion and display of git branch | |
| source ~/git-completion.bash | |
| source ~/git-prompt.sh | |
| PS1='[\u@\h \W$(__git_ps1 ":%s")]\$ ' | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment