Only add shgit to PS1 if git is installed
This commit is contained in:
parent
c145066753
commit
63c21d37a5
@ -31,7 +31,7 @@ if [ -d ~/local/man ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
PS1=
|
PS1=
|
||||||
if [ -f ~/code/lucas/env/utils/shgit ]; then
|
if command -v git >/dev/null 2>&1 && [ -f ~/code/lucas/env/utils/shgit ]; then
|
||||||
. ~/code/lucas/env/utils/shgit
|
. ~/code/lucas/env/utils/shgit
|
||||||
export PS1='$(shgit)'
|
export PS1='$(shgit)'
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user