diff --git a/src/rezplugins/shell/sh.py b/src/rezplugins/shell/sh.py index 721c2d5ab..89ad961b7 100644 --- a/src/rezplugins/shell/sh.py +++ b/src/rezplugins/shell/sh.py @@ -92,7 +92,7 @@ def get_startup_sequence(cls, rcfile, norc, stdin, command): def _bind_interactive_rez(self): if config.set_prompt and self.settings.prompt: - self._addline('if [ -z "$REZ_STORED_PROMPT" ]; then export REZ_STORED_PROMPT=$PS1; fi') + self._addline('if [ -z "$REZ_STORED_PROMPT" ]; then export REZ_STORED_PROMPT="$PS1"; fi') if config.prefix_prompt: cmd = 'export PS1="%s $REZ_STORED_PROMPT"' else: