You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Secondly, activate the plugin in ~/.zshrc. Enable it by adding zsh-ipip to the plugins array.
plugins=(
[plugins
...]
zsh-ipip
)
Antigen
Antigen is a zsh plugin manager, and it support oh-my-zsh plugin as well. You only need to add antigen bundle sukkaw/zsh-ipip to your .zshrc with your other bundle commands if you are using Antigen. Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with antigen bundle sukkaw/zsh-ipip for testing before adding it to your .zshrc.
Congratulations! Open a new terminal or run source $HOME/.zshrc.
Usage
$ ipip 1.0.0.1
* 当前 IP 1.0.0.1
* 地理位置 CLOUDFLARE.COM
* 运营商 apnic.net
* ASN AS13335
* CIDR 1.0.0.0/24
* ASN 组织 CLOUDFLARENET-Cloudflare,Inc.,US
* 该 IP 段为 IDC 机房使用
* 该 IP 段为 ANYCAST IP 段
$ ipip
# Your current IP and IP info
Uninstallation
If you install zsh-ipip with Antigen, you need to remove antigen bundle sukkaw/zsh-ipip to disable the plugin.
If you install zsh-ipip with oh-myzsh, you need to remove zsh-ipip item from plugin array, then run rm -rf ~/.oh-my-zsh/custom/plugins/zsh-ipip to remove the plugin.