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

Use new line character instead semicolon in the preexec hook
This commit is contained in:
Nils Winkler
2020-03-20 08:59:57 +01:00
committed by GitHub

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