powerlevel9k icon indicating copy to clipboard operation
powerlevel9k copied to clipboard

Inconsistent network interface matching between OSX and other operating systems

Open romkatv opened this issue 6 years ago • 0 comments

  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):

  • slow
  • notslow
  • slowr

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

romkatv avatar Aug 30 '19 11:08 romkatv