14 lines
358 B
Python
Executable File
14 lines
358 B
Python
Executable File
#!/usr/bin/env python2
|
|
# -*- coding: utf-8 -*-
|
|
'''Powerline terminal prompt.'''
|
|
try:
|
|
from powerline.core import Powerline
|
|
except ImportError:
|
|
import os
|
|
import sys
|
|
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'))
|