mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
add ips aliases
This commit is contained in:
parent
e32d4b1e19
commit
0a55bf12e2
2 changed files with 21 additions and 0 deletions
3
plugins/ips/ips.plugin.zsh
Normal file
3
plugins/ips/ips.plugin.zsh
Normal 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'"
|
||||
Loading…
Add table
Add a link
Reference in a new issue