Use new line character instead semicolon in the preexec hook

pull/1519/head
Eduardo Bellido Bellido 2020-03-14 22:56:25 +01:00
parent b35d41464c
commit 1bf9bbde0d
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ function preexec_install () {
# Finally, install the actual traps. # Finally, install the actual traps.
if [[ ! -z "${PROMPT_COMMAND// }" ]]; then if [[ ! -z "${PROMPT_COMMAND// }" ]]; then
PROMPT_COMMAND="${PROMPT_COMMAND};preexec_invoke_cmd" PROMPT_COMMAND="${PROMPT_COMMAND}"$'\n'"preexec_invoke_cmd"
else else
PROMPT_COMMAND="preexec_invoke_cmd" PROMPT_COMMAND="preexec_invoke_cmd"
fi fi