diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-06-02 19:13:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 19:13:03 +0300 |
commit | b81d2cb2f29114a1dc5e466d4fad1c267a58c7b8 (patch) | |
tree | be6fb9608198c083c0c845eda2a11117c03213a9 /README.md | |
parent | d6a14a9a010009866c60a2f4d52d0aefac93e876 (diff) | |
parent | e09d4ae92600bc4c567d0c0d19dfc5139416561a (diff) |
Merge pull request #539 from golgoth31/next
add vpn ip to prompt
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -94,6 +94,7 @@ The segments that are currently available are: * `history` - The command number for the current line. * [`host`](#host) - Your current host name * [`ip`](#ip) - Shows the current IP address. +* [`vpn`](#vpn) - Shows the current VPN IP address. * [`public_ip`](#public_ip) - Shows your public IP address. * `load` - Your machine's load averages. * `os_icon` - Display a nice little icon, depending on your operating system. @@ -445,6 +446,14 @@ specify the correct network interface by setting: |----------|---------------|-------------| |`POWERLEVEL9K_IP_INTERFACE`|None|The NIC for which you wish to display the IP address. Example: `eth0`.| +##### vpn + +This segment tries to extract the VPN related IP addresses from nmcli, based on the NIC type: + +| Variable | Default Value | Description | +|----------|---------------|-------------| +|`POWERLEVEL9K_VPN_IP_INTERFACE`|tun|The VPN NIC type| + ##### public_ip This segment will display your public IP address. There are several methods of obtaining this |