Git Product home page Git Product logo

zsh-ipip's Introduction

zsh-ipip

Author License

🔩 An oh-my-zsh plugin for IPIP.

Installation

oh-my-zsh

Firstly, clone this repository in oh-my-zsh's plugins directory.

git clone https://github.com/sukkaw/zsh-ipip.git ~/.oh-my-zsh/custom/plugins/zsh-ipip

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.

Author

zsh-ipip © Sukka, Released under the MIT License.
Authored and maintained by Sukka with help from contributors (list).

Personal Website · Blog · GitHub @SukkaW · Telegram Channel @SukkaChannel · Twitter @isukkaw · Keybase @sukka

zsh-ipip's People

Contributors

sukkaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

zsh-ipip's Issues

php版

请问能弄个php版本的ipip判断ip是否为IDCd的IP,我付费,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.