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

11 lines
344 B
Python

import os
from ..utils import BasicSegment
class Segment(BasicSegment):
def add_to_powerline(self):
if os.getenv('SSH_CLIENT'):
powerline = self.powerline
powerline.append(' %s ' % powerline.network,
powerline.theme.SSH_FG,
powerline.theme.SSH_BG)