Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 947 forks source link

Inconsistent network interface matching between OSX and other operating systems #1358

Open romkatv opened 5 years ago

romkatv commented 5 years ago
  1. On OSX (and only on OSX) network interfaces whose names contain "lo" are ignored.

For example, suppose I have a network interface called "slow" and I define these options:

POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(ip)
POWERLEVEL9K_IP_INTERFACE=slow

On OSX I won't see ip segment but on other operating systems I will.

  1. On OSX network interfaces must match completely while on OSX matching is more relaxed.

With the same settings as before:

POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(ip)
POWERLEVEL9K_IP_INTERFACE=slow

On OSX this will match the following interfaces (an incomplete list):

On other operating systems it will only match "slow".