summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-08-26 11:48:53 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-08-26 11:48:53 +0300
commit7eb501c0f533d33ec42a6b460f1778ddf3ae08f1 (patch)
treebd2b2b5953d4b1a01f7e1df1e502daaab49e4023 /internal
parent6279aa57d77e26430173430adf84c06acc7b6de6 (diff)
suport hex flags in the output of ifconfig; see #979
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 390d7884..2fc3f7b4 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5337,8 +5337,8 @@ function _p9k_prompt_net_iface_async() {
typeset -a iface2ip ips ifaces
if (( $+commands[ifconfig] )); then
for line in ${(f)"$(command ifconfig 2>/dev/null)"}; do
- if [[ $line == (#b)([^[:space:]]##):[[:space:]]##flags=(<->)'<'* ]]; then
- [[ $match[2] == *[13579] ]] && iface=$match[1] || iface=
+ if [[ $line == (#b)([^[:space:]]##):[[:space:]]##flags=([[:xdigit:]]##)'<'* ]]; then
+ [[ $match[2] == *[13579bdfBDF] ]] && iface=$match[1] || iface=
elif [[ -n $iface && $line == (#b)[[:space:]]##inet[[:space:]]##([0-9.]##)* ]]; then
iface2ip+=($iface $match[1])
iface=