fix _git_ps1 command not found situation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
# display git status
|
# display git status
|
||||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||||
if [[ $(type -t foo) != function ]]; then
|
if [[ $(type -t __git_ps1) != function ]]; then
|
||||||
__git_ps1(){
|
__git_ps1(){
|
||||||
|
|
||||||
local branch=`git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/\1/'`
|
local branch=`git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/\1/'`
|
||||||
|
|||||||
Reference in New Issue
Block a user