diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-12-12 11:42:41 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-12-12 11:42:41 +0300 |
commit | 1d99a0bac3721f6d89ac23dfd97f6d30dc04a29e (patch) | |
tree | 8974a6691c70e9e4dadf8eb8e8183cdd4f6b74b8 | |
parent | b90b36251dcaa170f6a6553fbbaf5d4f4dd1786a (diff) |
wifi: recognize SSID with spaces (#1152)
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index cd0a2196..83091d0f 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5061,7 +5061,7 @@ _p9k_prompt_wifi_async() { lines=(${(f)"$(command iw dev $iface link)"}) || return 0 local -a match mbegin mend for line in $lines; do - if [[ $line == (#b)[[:space:]]#SSID:[[:space:]]##([^[:space:]]##) ]]; then + if [[ $line == (#b)[[:space:]]#SSID:[[:space:]]##(*) ]]; then ssid=$match[1] elif [[ $line == (#b)[[:space:]]#'tx bitrate:'[[:space:]]##([^[:space:]]##)' MBit/s'* ]]; then last_tx_rate=$match[1] |