1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-02-17 08:54:28 +01:00

add ips aliases

This commit is contained in:
frani 2021-06-27 00:59:43 -03:00
parent e32d4b1e19
commit 0a55bf12e2
2 changed files with 21 additions and 0 deletions

18
plugins/ips/README.md Normal file
View file

@ -0,0 +1,18 @@
# ips plugin
**Maintainer:** [@Frani](https://github.com/frani)
This plugin provides completion as well as adding many useful aliases.
To use it, add `ips` to the plugins array in your zshrc file:
```zsh
plugins=(... ips)
```
## Aliases
| 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 |

View file

@ -0,0 +1,3 @@
# easy get ip - internal & external
alias ipe="curl -w '\n' ipinfo.io/ip"
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'"