romkatv / powerlevel10k

A Zsh theme
MIT License
44.3k stars 2.12k forks source link

VPN not showing #194

Closed tpelado closed 4 years ago

tpelado commented 4 years ago

Hello, I switched from p9k to p10k, and so far everything works as intended, except for the "VPN" segment. It does work on p9k and does not on p10k, or at least it does not work anymore with WindScribe VPN.

I'm running ZSH 5.7.1 on Manjaro 4.19.66-1.

romkatv commented 4 years ago

Please post the output of the following command:

uname -a
typeset -m 'POWERLEVEL9K_*|ZSH_VERSION|ZSH_PATCHLEVEL'
which ifconfig
ifconfig
tpelado commented 4 years ago
Linux tanguy-laptop 4.19.66-1-MANJARO #1 SMP PREEMPT Fri Aug 9 18:01:53 UTC 2019 x86_64 GNU/Linux
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND=15
POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=15
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( battery user dir newline vcs vpn_ip )
ZSH_VERSION=5.7.1
ZSH_PATCHLEVEL=zsh-5.7.1-0-g8b89d0d
POWERLEVEL9K_USER_DEFAULT_BACKGROUND=240
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND=15
POWERLEVEL9K_DIR_HOME_FOREGROUND=15
POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=15
POWERLEVEL9K_LOAD_WARNING_FOREGROUND=15
POWERLEVEL9K_USER_SUDO_FOREGROUND=1
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND=209
POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=21
POWERLEVEL9K_USER_DEFAULT_FOREGROUND=15
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND=214
POWERLEVEL9K_DIR_HOME_BACKGROUND=202
/usr/bin/ifconfig

enp2s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether [REDACTED MAC]  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 127  base 0x6000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3358  bytes 17481654 (16.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3358  bytes 17481654 (16.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet IP  netmask 255.255.254.0  destination IP
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 100  (UNSPEC)
        RX packets 838267  bytes 1133762650 (1.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 265099  bytes 19488122 (18.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet IP  netmask 255.255.255.0  broadcast IP
        ether [REDACTED MAC] txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 100  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmnet8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet IP  netmask 255.255.255.0  broadcast IP
        ether [REDACTED MAC]  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 100  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet IP  netmask 255.255.240.0  broadcast IP
        ether [REDACTED MAC]  txqueuelen 1000  (Ethernet)
        RX packets 1788439  bytes 2214647686 (2.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 457268  bytes 72716753 (69.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

let me know if you need it uncensored.

romkatv commented 4 years ago

Thanks for the bug report and for providing additional information. I think I've fixed the bug. Please update powerlevel10k and try again. Let me know if it works for you.

tpelado commented 4 years ago

You have indeed fixed that bug. Kudos to you for you rapidity !

romkatv commented 4 years ago

Thanks for the confirmation!