summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Illi-Zuberbühler <daniel-illi@users.noreply.github.com>2019-09-10 21:12:29 +0200
committerMatan Kushner <hello@matchai.me>2019-09-10 15:12:29 -0400
commitee20d6b2ac794ef84921509d35294714126889fd (patch)
tree0ed8599a397f862508b1cf495782a7e0dc4c6680
parentf9a45140459c9f155a2be46c2c51d3c186bb3175 (diff)
fix: Prepend to PROMPT_COMMAND in Bash init (#336)
Bash init: do not overwrite PROMPT_COMMAND but prepend to it.
-rw-r--r--src/init.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.rs b/src/init.rs
index 92390c755..33fad064c 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