Fix bug: themes break global $PROMPT_COMMAND variable
Safely append functions to $PROMPT_COMMAND instead of setting it.
This commit is contained in:
@@ -22,4 +22,4 @@ SCM_THEME_PROMPT_CLEAN=" ✓"
|
||||
SCM_THEME_PROMPT_PREFIX="("
|
||||
SCM_THEME_PROMPT_SUFFIX=")"
|
||||
|
||||
PROMPT_COMMAND=prompt_command;
|
||||
safe_append_prompt_command prompt_command
|
||||
|
||||
Reference in New Issue
Block a user