From 1a4c03b08c7c9160a8ca52567556940fb0563467 Mon Sep 17 00:00:00 2001 From: Sam Gunaratne Date: Wed, 3 Aug 2016 10:04:24 +0100 Subject: [PATCH] Fixes issue with PROMPT_COMMAND ending in semi-colon --- themes/base.theme.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 50225023..f6d2be0d 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -408,7 +408,8 @@ function safe_append_prompt_command { if [[ -n $1 ]] ; then case $PROMPT_COMMAND in *$1*) ;; + "") PROMPT_COMMAND="$1";; *) PROMPT_COMMAND="$1;$PROMPT_COMMAND";; esac fi -} \ No newline at end of file +}