mirror of
https://github.com/powerline/powerline.git
synced 2025-07-13 08:54:52 +02:00
Move terminal prompt script to extension directory
This commit is contained in:
parent
2ceec25713
commit
d0d35cac34
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env python2
|
||||
# -*- coding: utf-8 -*-
|
||||
'''Powerline terminal prompt example.
|
||||
'''
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
|
||||
|
||||
from powerline.core import Powerline
|
||||
|
||||
pl = Powerline('terminal')
|
||||
print(pl.renderer.render('n'))
|
15
powerline/ext/terminal/powerline_prompt.py
Executable file
15
powerline/ext/terminal/powerline_prompt.py
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python2
|
||||
# -*- coding: utf-8 -*-
|
||||
'''Powerline terminal prompt example.
|
||||
'''
|
||||
try:
|
||||
from powerline.core import Powerline
|
||||
except ImportError:
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.dirname(os.path.dirname(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'))
|
Loading…
x
Reference in New Issue
Block a user