powerline/scripts/powerline-prompt

14 lines
358 B
Plaintext
Raw Normal View History

#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''Powerline terminal prompt.'''
try:
from powerline.core import Powerline
except ImportError:
import os
import sys
2013-01-17 09:25:56 +01:00
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from powerline.core import Powerline
pl = Powerline('terminal')
print(pl.renderer.render(None).encode('utf-8'))