blob: a23151245e499a1704add1dfbc7689b0184bc19c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)
from powerline.renderers.shell import ShellRenderer
class ZshPromptRenderer(ShellRenderer):
'''Powerline zsh prompt segment renderer.'''
escape_hl_start = '%{'
escape_hl_end = '%}'
character_translations = ShellRenderer.character_translations.copy()
character_translations[ord('%')] = '%%'
renderer = ZshPromptRenderer
|