From ee20d6b2ac794ef84921509d35294714126889fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Illi-Zuberb=C3=BChler?= Date: Tue, 10 Sep 2019 21:12:29 +0200 Subject: [PATCH] fix: Prepend to PROMPT_COMMAND in Bash init (#336) Bash init: do not overwrite PROMPT_COMMAND but prepend to it. --- src/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.rs b/src/init.rs index 92390c75..33fad064 100644 --- a/src/init.rs +++ b/src/init.rs @@ -215,7 +215,7 @@ else fi # Finally, prepare the precmd function and set up the start time. - PROMPT_COMMAND=starship_precmd + PROMPT_COMMAND="starship_precmd;$PROMPT_COMMAND"; fi # Set up the start time and STARSHIP_SHELL, which controls shell-specific sequences