mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-05 20:47:08 +08:00
Merge 2372943a38 into d1222044bc
This commit is contained in:
commit
28930199c9
18
plugins/ips/README.md
Normal file
18
plugins/ips/README.md
Normal 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 -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 |
|
||||
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 -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'"
|
||||
Loading…
Reference in New Issue
Block a user