diff --git a/eden/scm/contrib/scm-prompt.sh b/eden/scm/contrib/scm-prompt.sh index 015932da5ce7a..9ea7989b83719 100644 --- a/eden/scm/contrib/scm-prompt.sh +++ b/eden/scm/contrib/scm-prompt.sh @@ -257,7 +257,7 @@ _scm_prompt() { fi [[ "$dir" = "/" ]] && break # portable "realpath" equivalent - dir="$(builtin cd -P "$dir/.." && builtin echo "$PWD")" + dir="$(builtin cd -P "$dir/.." >/dev/null && builtin echo "$PWD")" done if [[ -n "$br" ]]; then