Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bash): unbound variable error with STARSHIP_PREEXEC_READY #5438

Merged
merged 1 commit into from Oct 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/init/starship.bash
Expand Up @@ -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
Expand Down