diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-10-25 19:48:37 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2018-10-25 19:48:37 +0300 |
commit | 993de7aef93ecdab1c3046d185656e4200b77d76 (patch) | |
tree | b6c20e653f65ad72c35fc8dae8e967b3b763e65a /powerlevel9k.zsh-theme | |
parent | ad14807cef372994c3ba00632117f6d43b798ffb (diff) |
Fix vpn_ip segment
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 3c3303fa..41653077 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1134,7 +1134,7 @@ prompt_ip() { set_default POWERLEVEL9K_VPN_IP_INTERFACE "tun" # prompt if vpn active prompt_vpn_ip() { - for vpn_iface in $(/sbin/ifconfig | grep -e ^"$POWERLEVEL9K_VPN_IP_INTERFACE" | cut -d":" -f1) + for vpn_iface in $(/sbin/ifconfig | grep -e "^${POWERLEVEL9K_VPN_IP_INTERFACE}" | cut -d":" -f1) do ip=$(/sbin/ifconfig "$vpn_iface" | grep -o "inet\s.*" | cut -d' ' -f2) "$1_prompt_segment" "$0" "$2" "cyan" "$DEFAULT_COLOR" "$ip" 'VPN_ICON' |