Fixes issue with PROMPT_COMMAND ending in semi-colon

This commit is contained in:
Sam Gunaratne
2016-08-03 10:04:24 +01:00
parent e64cc5b6f1
commit 1a4c03b08c

View File

@@ -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
}
}