summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-11-16 23:02:29 +0300
committerGitHub <noreply@github.com>2018-11-16 23:02:29 +0300
commit5abac53698ecc59a9ee0fb530453342421fa1991 (patch)
tree49ca7da57093f05403e7020d97eb63f42d0e74b5 /powerlevel9k.zsh-theme
parente47b0daaf7aa1cc59c384fdb7b2a2d5532082373 (diff)
parent993de7aef93ecdab1c3046d185656e4200b77d76 (diff)
Merge pull request #1037 from dritter/fix_vpn_ip_segment
Fix vpn_ip segment
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
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'