THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Source the command completion and prompt files in via your ~/.profile or ~/.bashrc
Code Block |
---|
source /usr/share/doc/git-*/contrib/completion/git-completion.bash source /usr/share/doc/git-*/contrib/completion/git-prompt.sh # some versions of git it is elsewhere: # source /etc/bash_completion.d/git # Set multi-color, git-aware prompt (git branch and working dir) - customize as desired # bash(1) colors: http://www.cplusplus.com/forum/unices/36461/ # 2;33 = dark yellow # 0;31 = red # 0m = default color # \! = command history number # \w = working dir PS1='\033[2;33m# \! $(__git_ps1 "\033[0;31m(%s)\033[2;33m ")\w\n\033[2;33m#> \033[0m' |
If you are using git version less than 1.8, git-prompt.sh is not a separate file, but included in git-completion.bash.
Set up your identification.
...