Git prompt linux
This commit is contained in:
parent
2addfbf192
commit
aaa525912e
7
_bashrc
7
_bashrc
@ -106,8 +106,13 @@ fi
|
|||||||
if [ -e /usr/local/share/git-core/contrib/completion/git-completion.bash ]; then
|
if [ -e /usr/local/share/git-core/contrib/completion/git-completion.bash ]; then
|
||||||
. /usr/local/share/git-core/contrib/completion/git-completion.bash
|
. /usr/local/share/git-core/contrib/completion/git-completion.bash
|
||||||
fi
|
fi
|
||||||
if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ]; then
|
if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ] || [ -e /usr/lib/git-core/git-sh-prompt ]; then
|
||||||
|
if [ -e /usr/lib/git-core/git-sh-prompt ]; then
|
||||||
|
. /usr/lib/git-core/git-sh-prompt
|
||||||
|
fi
|
||||||
|
if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ]; then
|
||||||
. /usr/local/share/git-core/contrib/completion/git-prompt.sh
|
. /usr/local/share/git-core/contrib/completion/git-prompt.sh
|
||||||
|
fi
|
||||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||||
export GIT_PS1_SHOWSTASHSTATE=1
|
export GIT_PS1_SHOWSTASHSTATE=1
|
||||||
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
||||||
|
Loading…
Reference in New Issue
Block a user