mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 08:10:08 +00:00
change external ip track service
This commit is contained in:
parent
0a55bf12e2
commit
2372943a38
2 changed files with 3 additions and 3 deletions
|
@ -14,5 +14,5 @@ plugins=(... ips)
|
||||||
|
|
||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
|---------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------------|
|
|---------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------------|
|
||||||
| ipe | `curl ipinfo.io/ip` | Display your current external 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 |
|
| 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 |
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# easy get ip - internal & external
|
# 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'"
|
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'"
|
||||||
|
|
Loading…
Reference in a new issue