Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 942 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 942 Bytes

IP

Installation

To use this segment, you need to activate it by adding ip to your P9K_LEFT_PROMPT_ELEMENTS or P9K_RIGHT_PROMPT_ELEMENTS array, depending where you want to show this segment.

Configuration

This segment tries to examine all currently used network interfaces and prints the first address it finds. In the case that this is not the right NIC, you can specify the correct network interface by setting:

Variable Default Value Description
P9K_IP_INTERFACE None The NIC for which you wish to display the IP address. Example: eth0.

Color Customization

You can change the foreground and background color of this segment by setting

P9K_IP_FOREGROUND='red'
P9K_IP_BACKGROUND='blue'

Customize Icon

The main Icon can be changed by setting P9K_IP_ICON="my_icon". To change the icon color only, set P9K_IP_ICON_COLOR="red".