mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-03 07:17:26 -08:00
1d6f106461
Adress -> Address
1 KiB
1 KiB
id | title | sidebar_label |
---|---|---|
ipify | Ipify | Ipify |
What
Ipify is a simple Public IP Address API, it returns your public IP Address in plain text.
Sample Configuration
{
"type": "ipify",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "",
"trailing_diamond": "\uE0B0",
"template": "{{ .IP }}",
"properties": {
"cache_timeout": 5,
"http_timeout": 1000
}
}
Properties
- url:
string
- The Ipify URL, by default IPv4 is used, usehttps://api64.ipify.org
for IPv6 - defaults tohttps://api.ipify.org
- http_timeout:
int
- How long may the segment wait for a response of the ipify API? - defaults to 20ms - cache_timeout:
int
in minutes - How long do you want your IP address cached? - defaults to 10 min
Template (info)
:::note default template
{{ .IP }}
:::
Properties
- .IP:
string
- Your external IP address