diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-11-16 23:02:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-16 23:02:29 +0300 |
commit | 5abac53698ecc59a9ee0fb530453342421fa1991 (patch) | |
tree | 49ca7da57093f05403e7020d97eb63f42d0e74b5 /powerlevel9k.zsh-theme | |
parent | e47b0daaf7aa1cc59c384fdb7b2a2d5532082373 (diff) | |
parent | 993de7aef93ecdab1c3046d185656e4200b77d76 (diff) |
Merge pull request #1037 from dritter/fix_vpn_ip_segment
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 c8a98474..7077bfc8 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' |