1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

parenthesize regex

This commit is contained in:
romkatv 2019-11-09 17:00:11 +01:00
parent 39b2064a97
commit 37221b7720

View File

@ -231,7 +231,7 @@ _p9k_segment_in_use() {
}
function _p9k_parse_ip() {
local iface_regex="^${1:-.*}\$" iface ip
local iface_regex="^(${1:-.*})\$" iface ip
for iface ip in "${(@kv)_p9k_iface}"; do
if [[ $iface =~ $iface_regex ]]; then
_p9k_ret=$ip