Skip to content

Commit

Permalink
Call prompt_on() when lp_activate() is run
Browse files Browse the repository at this point in the history
This will be the same outcome for the normal usage: source liquidprompt.
But for the reloading of the user's config, if they would only run
lp_activate(), some things would not be reset correctly. Namely,
directory location specific things, like the current working directory.
This is the simplest fix. It also means that we can put any other
resetting code in prompt_on() to keep it central.
  • Loading branch information
Rycieos committed Nov 25, 2020
1 parent 9ba5d28 commit 22dd760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ lp_activate() {
fi

_lp_theme_activate

prompt_on
}

#####################
Expand Down Expand Up @@ -2514,7 +2516,6 @@ prompt_OFF() {
# By default, sourcing liquidprompt will activate Liquid Prompt
if [ "${1-}" != "--no-activate" ]; then
lp_activate
prompt_on
fi

# vim: set et sts=4 sw=4 tw=120 ft=sh:

0 comments on commit 22dd760

Please sign in to comment.