mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-25 22:22:31 +01:00
Fix bug which Wi-Fi cannot display
This commit is contained in:
parent
3920940ea8
commit
8d4dc3668f
1 changed files with 1 additions and 1 deletions
|
|
@ -5064,7 +5064,7 @@ _p9k_prompt_wifi_async() {
|
|||
# wlp3s0: 0000 58. -52. -256 0 0 0 0 76 0
|
||||
local -a lines
|
||||
lines=(${${(f)"$(</proc/net/wireless)"}:#*\|*}) || return 0
|
||||
(( $#lines == 1 )) || return 0
|
||||
(( $#lines >= 1 )) || return 0
|
||||
local parts=(${=lines[1]})
|
||||
iface=${parts[1]%:}
|
||||
state=${parts[2]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue