do not overwrite PROMPT_COMMAND and set it back with prompt_off
This commit is contained in:
parent
bf46824121
commit
c46f027b42
@ -756,14 +756,15 @@ __set_bash_prompt()
|
||||
prompt_on()
|
||||
{
|
||||
LP_OLD_PROMPT="$PS1"
|
||||
PROMPT_COMMAND=__set_bash_prompt
|
||||
LP_OLD_PROMPT_COMMAND="$PROMPT_COMMAND"
|
||||
PROMPT_COMMAND="$PROMPT_COMMAND;__set_bash_prompt"
|
||||
}
|
||||
|
||||
# Come back to the old prompt
|
||||
prompt_off()
|
||||
{
|
||||
PS1=$LP_OLD_PROMPT
|
||||
PROMPT_COMMAND=""
|
||||
PROMPT_COMMAND=$LP_OLD_PROMPT_COMMAND
|
||||
}
|
||||
|
||||
# By default, sourcing liquidprompt.bash will activate the liquid prompt
|
||||
|
Loading…
Reference in New Issue
Block a user