Fix for https://bugs.mageia.org/show_bug.cgi?id=1623 . Tested that everything is working and the bug was fixed. PROMPT_COMMAND had a minor problem.