Segments are written in Python, and the default segments provided with
Powerline are located in
User-defined segments can be defined in any module in
paths common configuration option, import is
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
More information is available in Writing segments section.