aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDavid Sabatie <david.sabatie@sigfox.com>2017-05-31 18:32:42 +0300
committerDavid Sabatie <david.sabatie@sigfox.com>2017-05-31 18:32:42 +0300
commit5eec2e28d0e44b2ac168fc3e08a38d68d4cb4fbe (patch)
tree530469cc3cc972776b75cf59b6796c4a5c7817fb /README.md
parent92264124a9a3894b86ec66617d5e40dea77cd2f1 (diff)
add vpn ip to prompt
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 890875ad..5b9cb24a 100644
--- a/README.md
+++ b/README.md
@@ -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.
@@ -444,6 +445,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