mirror of
https://github.com/gunchev/home_bin.git
synced 2025-11-20 12:15:46 +00:00
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:
parent
fc2d92dc03
commit
0749f8ff07
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue