Last active
October 9, 2015 11:27
-
-
Save Rud5G/3496231 to your computer and use it in GitHub Desktop.
.bashrc git sensative prompt
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
## here is the original ~/.bashrc | |
# Alias definitions. | |
# You may want to put all your additions into a separate file like | |
# ~/.bash_aliases, instead of adding them here directly. | |
# See /usr/share/doc/bash-doc/examples in the bash-doc package. | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
# enable programmable completion features (you don't need to enable | |
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | |
# sources /etc/bash.bashrc). | |
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
. /etc/bash_completion | |
fi | |
# set the git sensative prompt, and $ cd to a git-dir. | |
# | |
PS1='\u@\h:\w\[\033[1;33m\]`__git_ps1`\[\033[0m\]\$ ' | |
##_END_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment