diff options
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/starship.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init/starship.bash b/src/init/starship.bash index 9b4886177..ccc54ac15 100644 --- a/src/init/starship.bash +++ b/src/init/starship.bash @@ -70,7 +70,8 @@ else if [[ -z "$PROMPT_COMMAND" ]]; then PROMPT_COMMAND="starship_precmd" elif [[ "$PROMPT_COMMAND" != *"starship_precmd" ]]; then - PROMPT_COMMAND="$PROMPT_COMMAND;starship_precmd" + # Remove any trailing semicolon before appending (PR #784) + PROMPT_COMMAND="${PROMPT_COMMAND%;};starship_precmd" fi fi |