diff --git a/src/init/starship.bash b/src/init/starship.bash index 370e0b27b..b7f7cb0e5 100644 --- a/src/init/starship.bash +++ b/src/init/starship.bash @@ -21,7 +21,7 @@ starship_preexec() { local PREV_LAST_ARG=$1 # Avoid restarting the timer for commands in the same pipeline - if [ "$STARSHIP_PREEXEC_READY" = "true" ]; then + if [ "${STARSHIP_PREEXEC_READY:-}" = "true" ]; then STARSHIP_PREEXEC_READY=false STARSHIP_START_TIME=$(::STARSHIP:: time) fi