LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mc startup slow on slackware64-current (https://www.linuxquestions.org/questions/slackware-14/mc-startup-slow-on-slackware64-current-4175556826/)

qunying 03-30-2016 12:43 PM

It maybe still the "PROMPT_COMMAND" problem, do you have it defined? Since I use a special variable to guard the PROMPT_COMMAND, there is no slow startup problem.

Code:

    if [ "$HH_PROMPT_COMMAND_SET" = "" ]; then
        if [ "$PROMPT_COMMAND" == "" ]; then
            export PROMPT_COMMAND="history -a; history -n"  # mem/file sync
        else
            export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}"  # mem/file sync
        fi
        export HH_PROMPT_COMMAND_SET="yes"
    fi



All times are GMT -5. The time now is 09:29 AM.