dotfiles/config/powerline-shell/segments/newline.py
2021-04-20 13:12:35 +02:00

12 lines
431 B
Python

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="")