powerlevel10k: Prompt freezes with recent NordVPN version — p10k_nordvpn prompt segment hangs
Problem
After upgrading NordVPN to the latest version, my zsh prompt hangs at startup when using Powerlevel10k and the nordvpn prompt segment. The issue resolves when I comment nordvpn from the segment list in ~/.p10k.zsh.
Steps to Reproduce
- Update NordVPN to latest version.
- Open zsh with Powerlevel10k configured and
nordvpnin the segment list. - Shell does not display prompt and appears stuck, CPU is idle.
- Removing
nordvpnfrom the segment array fixes the issue.
Diagnostic Steps & Outputs
a. Powerlevel10k debug output:
Run the following from the affected user:
zsh -xv &> p10k-nordvpn-hang.log
+_p9k_set_prompt:46> prompt_nordvpn
+prompt_nordvpn:1> unset P9K_NORDVPN_STATUS P9K_NORDVPN_TECHNOLOGY P9K_NORDVPN_PROTOCOL P9K_NORDVPN_IP_ADDRESS P9K_NORDVPN_SERVER P9K_NORDVPN_COUNTRY P9K_NORDVPN_CITY P9K_NORDVPN_COUNTRY_CODE
+prompt_nordvpn:2> [[ -e /run/nordvpn/nordvpnd.sock ]]
+prompt_nordvpn:3> _p9k_fetch_nordvpn_status
uname -a
Linux 5.15.0-138-generic #148-Ubuntu SMP Fri Mar 14 19:05:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
Distributor ID: Linuxmint
Description: Linux Mint 21.2
Release: 21.2
Codename: victoria
zsh --version
zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
nordvpn --version
NordVPN Version 3.20.2
ls -l /run/nordvpn/nordvpnd.sock
srwxrwx— 1 root nordvpn 0 Apr 29 07:46 /run/nordvpn/nordvpnd.sock
ps aux | grep nordvpn
root 1491 0.2 0.1 4963524 67028 ? Ssl 07:46 0:04 /usr/sbin/nordvpnd
user+ 5199 0.0 0.0 2200800 18264 ? Sl 07:47 0:00 /usr/lib/nordvpn/norduserd
nordvpn status
Status: Disconnected
I believe Powerlevel10k prompt is blocking on a call to the new NordVPN daemon/socket or CLI, possibly due to API changes, compatibility, or a delay/hang in detection. Would you like me to try any debugging builds or additional diagnostics?
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 34
- Comments: 15 (2 by maintainers)
Commits related to this issue
- disable nordvpn as it is broken after the last upstream update (#2860) — committed to romkatv/powerlevel10k by romkatv 2 years ago
- .config/zsh/p10k: Initial nordvpn p10k segment w/NetworkManager Workaround / Re-implementation due to romkatv/powerlevel10k#2860 — committed to trinitronx/dotfiles by trinitronx a year ago
I went crazy today after the update of all my systems. Thanks for the debugging
Thanks for the report!
I’ve disabled nordvpn prompt segment for now. Anyone affected by the issue will pick up the “fix” if they update. The experience is still going to be awful – a hanging shell, oof.
@bzeiss You can get a working shell like this:
You can also do this:
After this you should be able to
ssh HOSTNAME.If you cannot update / don’t want to modify
~/.p10k.zshyou can just apply the following change to your~/.zshrc: