diff --git a/src/init/starship.bash b/src/init/starship.bash index 663647e2..822a3b0b 100644 --- a/src/init/starship.bash +++ b/src/init/starship.bash @@ -71,7 +71,7 @@ else # add multiple instances of the starship function and keep other user functions if any. if [[ -z "$PROMPT_COMMAND" ]]; then PROMPT_COMMAND="starship_precmd" - elif [[ "$PROMPT_COMMAND" != *"starship_precmd" ]]; then + elif [[ "$PROMPT_COMMAND" != *"starship_precmd"* ]]; then # Appending to PROMPT_COMMAND breaks exit status ($?) checking. # Prepending to PROMPT_COMMAND breaks "command duration" module. # So, we are preserving the existing PROMPT_COMMAND