aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-08-28 20:00:55 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-08-28 20:00:55 +0300
commit9e505d3dc13ff01afe0fb3cdd16250826e370d12 (patch)
tree351ef2cc830fbd92bb3ea9a81bc9f1ca6feac86b
parent5f610a0af908137758992e2355c5ed6df2d71723 (diff)
allow network interface to contain colon
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 7c1f1945..d48ab097 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3052,7 +3052,7 @@ function _p9k_set_iface() {
local line
local iface
for line in ${(f)"$(/sbin/ifconfig 2>/dev/null)"}; do
- if [[ $line == (#b)([^[:space:]:]##):[[:space:]]##flags=(<->)'<'* ]]; then
+ if [[ $line == (#b)([^[:space:]]##):[[:space:]]##flags=(<->)'<'* ]]; then
[[ $match[2] == *[13579] ]] && iface=$match[1] || iface=
elif [[ -n $iface && $line == (#b)[[:space:]]##inet[[:space:]]##([0-9.]##)* ]]; then
_p9k_iface[$iface]=$match[1]