mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-14 09:00:07 +00:00
Fix regular expression
This commit is contained in:
parent
9b73c8bd9c
commit
da50151d24
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ prompt_public_ip() {
|
||||||
# Check VPN is on if VPN interface is set
|
# Check VPN is on if VPN interface is set
|
||||||
if [[ -n $POWERLEVEL9K_PUBLIC_IP_VPN_INTERFACE ]]; then
|
if [[ -n $POWERLEVEL9K_PUBLIC_IP_VPN_INTERFACE ]]; then
|
||||||
if [[ "$OS" == "OSX" ]]; then
|
if [[ "$OS" == "OSX" ]]; then
|
||||||
for vpn_iface in $(${ROOT_PREFIX}/sbin/ifconfig | grep -e ^"$POWERLEVEL9K_PUBLIC_IP_VPN_INTERFACE" | cut -d":" -f1)
|
for vpn_iface in $(${ROOT_PREFIX}/sbin/ifconfig | grep -e "^$POWERLEVEL9K_PUBLIC_IP_VPN_INTERFACE" | cut -d":" -f1)
|
||||||
do
|
do
|
||||||
icon='VPN_ICON'
|
icon='VPN_ICON'
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue