diff --git a/powerline/renderers/bash_prompt.py b/powerline/renderers/bash_prompt.py index d3ac3f26..c37a2cf9 100644 --- a/powerline/renderers/bash_prompt.py +++ b/powerline/renderers/bash_prompt.py @@ -13,6 +13,7 @@ class BashPromptRenderer(ShellRenderer): character_translations = ShellRenderer.character_translations.copy() character_translations[ord('$')] = '\\$' character_translations[ord('`')] = '\\`' + character_translations[ord('\\')] = '\\\\' renderer = BashPromptRenderer diff --git a/powerline/renderers/shell.py b/powerline/renderers/shell.py index c7c57451..5358871c 100644 --- a/powerline/renderers/shell.py +++ b/powerline/renderers/shell.py @@ -22,7 +22,6 @@ class ShellRenderer(Renderer): screen_escape = False character_translations = Renderer.character_translations.copy() - character_translations[ord('\\')] = '\\\\' def hlstyle(self, fg=None, bg=None, attr=None): '''Highlight a segment.