Use new line character instead semicolon in the preexec hook
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user