Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 745 Bytes

segments.rst

File metadata and controls

28 lines (20 loc) · 745 Bytes

Segment reference

Segments

Segments are written in Python, and the default segments provided with Powerline are located in powerline/segments/{extension}.py. User-defined segments can be defined in any module in sys.path or paths common configuration option <config-common-paths>, import is always absolute.

Segments are regular Python functions, and they may accept arguments. All arguments should have a default value which will be used for themes that don’t provide an args dict.

More information is available in Writing segments <dev-segments> section.

Available segments

segments/*