diff --git a/bash/prompt.sh b/bash/prompt.sh index b071c9b14..accc7f03d 100755 --- a/bash/prompt.sh +++ b/bash/prompt.sh @@ -12,7 +12,11 @@ fi # If directory was just changed to the root of a git repository, print onefetch if [ -n "$DIRCHANGED" ]; then if [ -d "$PWD/.git" ]; then - ${HOME}/bin/onefetch + if [[ "$(which onefetch)" == "" ]]; then + echo "This is a git directory, but you don't have 'onefetch' in your PATH" + else + onefetch + fi fi unset DIRCHANGED fi