diff --git a/lib/omb-prompt-base.sh b/lib/omb-prompt-base.sh index 47796d2de..0c6d7dab7 100644 --- a/lib/omb-prompt-base.sh +++ b/lib/omb-prompt-base.sh @@ -36,7 +36,6 @@ SCM_GIT_SHOW_CURRENT_USER=${SCM_GIT_SHOW_CURRENT_USER:=false} SCM_GIT_SHOW_MINIMAL_INFO=${SCM_GIT_SHOW_MINIMAL_INFO:=false} SCM_GIT='git' - SCM_GIT_CHAR='±' SCM_GIT_DETACHED_CHAR='⌿' SCM_GIT_AHEAD_CHAR="↑" @@ -124,7 +123,11 @@ function run_with_timeout() { TIMEOUT=gtimeout fi - $TIMEOUT ${TIME} ${CMD} + if [ -z "$TIMEOUT" ]; then + ${CMD} + else + $TIMEOUT ${TIME} ${CMD} + fi } function scm {