forked from liquidprompt/liquidprompt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unexport PROMPT_COMMAND (GH liquidprompt#450, liquidprompt#463)
Some users have a broken .bashrc that exports PROMPT_COMMAND. In this configuration _lp_set_prompt is in PROMPT_COMMAND when liquidprompt starts so prompt_on puts it in LP_OLD_PROMPT_COMMAND. This leads to a infinite recursion as _lp_set_prompt runs $LP_OLD_PROMPT_COMMAND. To work around those broken environments we now fix the environment by unexporting PROMPT_COMMAND.
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters