diff --git a/dotfiles/shrc b/dotfiles/shrc index fba0431..1ed6bd1 100644 --- a/dotfiles/shrc +++ b/dotfiles/shrc @@ -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