homes/common/.local/lib/python2.7/site-packages/powerline/segments/ipython.py

9 lines
192 B
Python
Raw Normal View History

2013-05-02 18:11:33 +02:00
# vim:fileencoding=utf-8:noet
from powerline.theme import requires_segment_info
@requires_segment_info
def prompt_count(pl, segment_info):
return str(segment_info['ipython'].prompt_count)