Merge pull request #1519 from edubxb/new-line-as-separator

Use new line character instead semicolon in the preexec hook
pull/1522/head
Nils Winkler 2020-03-20 08:59:57 +01:00 committed by GitHub
commit 733f047026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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