From 0749f8ff07ae8f0f94b8a8572f03560797b3fa78 Mon Sep 17 00:00:00 2001 From: "Doncho N. Gunchev" Date: Fri, 3 Nov 2023 14:31:32 +0200 Subject: [PATCH] Don't export PROMPT_COMMAND, solves new MC terminal problem. With export every command in mc resulted in bash: prompt_command: command not found error. --- bash/z-ps-twtty-7.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/z-ps-twtty-7.sh b/bash/z-ps-twtty-7.sh index 27f9092..78c2024 100755 --- a/bash/z-ps-twtty-7.sh +++ b/bash/z-ps-twtty-7.sh @@ -152,10 +152,10 @@ ${C2})${C3}\$${NO_COLOUR} " export PS2="${C2}─${C1}─${C1}─${NO_COLOUR} \[\033[K\]" if [ -z "${PROMPT_COMMAND}" ]; then - export PROMPT_COMMAND=prompt_command + PROMPT_COMMAND=prompt_command else if ! echo "${PROMPT_COMMAND}" | grep '\bprompt_command\b' > /dev/null 2>&1; then - export PROMPT_COMMAND="prompt_command + PROMPT_COMMAND="prompt_command ${PROMPT_COMMAND}" fi fi