dotfiles/config/powerline-shell/segments/newline.py

13 lines
431 B
Python
Raw Normal View History

2021-04-20 11:12:35 +00:00
from ..utils import BasicSegment, warn
class Segment(BasicSegment):
def add_to_powerline(self):
if self.powerline.args.shell == "tcsh":
warn("newline segment not supported for tcsh (yet?)")
return
self.powerline.append("\n",
self.powerline.theme.RESET,
self.powerline.theme.RESET,
separator="")