Only add shgit to PS1 if git is installed

Este commit está contenido en:
Lucas 2020-02-17 22:40:13 +00:00
padre c145066753
commit 63c21d37a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados

Ver fichero

@ -31,7 +31,7 @@ if [ -d ~/local/man ]; then
fi
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
export PS1='$(shgit)'
fi