From 2372943a38fcc1d3986d33c5d2082670a48bca04 Mon Sep 17 00:00:00 2001 From: frani Date: Sun, 27 Jun 2021 20:29:19 -0300 Subject: [PATCH] change external ip track service --- plugins/ips/README.md | 4 ++-- plugins/ips/ips.plugin.zsh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ips/README.md b/plugins/ips/README.md index 364c9c068..30be61e19 100644 --- a/plugins/ips/README.md +++ b/plugins/ips/README.md @@ -14,5 +14,5 @@ plugins=(... ips) | Alias | Command | Description | |---------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------------| -| ipe | `curl ipinfo.io/ip` | Display your current external ip | -| ipi | `ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*'| grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'` | Display your current internal ip | +| ipe | `curl -s ipv4.icanhazip.com` | Display your current external ip v4 | +| ipi | `ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*'| grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'` | Display your current internal ip v4 | diff --git a/plugins/ips/ips.plugin.zsh b/plugins/ips/ips.plugin.zsh index 77de7b711..0a5534fb7 100644 --- a/plugins/ips/ips.plugin.zsh +++ b/plugins/ips/ips.plugin.zsh @@ -1,3 +1,3 @@ # easy get ip - internal & external -alias ipe="curl -w '\n' ipinfo.io/ip" +alias ipe="curl -s ipv4.icanhazip.com" alias ipi="ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*'| grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'"