summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init/starship.bash2
1 files changed, 1 insertions, 1 deletions
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