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.
This commit is contained in:
Doncho N. Gunchev 2023-11-03 14:31:32 +02:00
parent fc2d92dc03
commit 0749f8ff07
Signed by: dgunchev
GPG key ID: D30FD19F37E002A9

View file

@ -152,10 +152,10 @@ ${C2})${C3}\$${NO_COLOUR} "
export PS2="${C2}${C1}${C1}${NO_COLOUR} \[\033[K\]" export PS2="${C2}${C1}${C1}${NO_COLOUR} \[\033[K\]"
if [ -z "${PROMPT_COMMAND}" ]; then if [ -z "${PROMPT_COMMAND}" ]; then
export PROMPT_COMMAND=prompt_command PROMPT_COMMAND=prompt_command
else else
if ! echo "${PROMPT_COMMAND}" | grep '\bprompt_command\b' > /dev/null 2>&1; then if ! echo "${PROMPT_COMMAND}" | grep '\bprompt_command\b' > /dev/null 2>&1; then
export PROMPT_COMMAND="prompt_command PROMPT_COMMAND="prompt_command
${PROMPT_COMMAND}" ${PROMPT_COMMAND}"
fi fi
fi fi