Skip to content

Simple ZSH config to retrieve ip address informations

Notifications You must be signed in to change notification settings

kristoftorok/zsh-ipapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

IP API

Very simple ZSH function for retrieving and displaying informations about IP addresses.

Screenshot

Description

The ipapi function makes use of the IP API service to retrieve data for a given IP address. It sends a request to the IP API endpoint, receives the JSON response and extracts specific information from it using jq (you have to install it). The function then formats and displays the retrieved data beautifully. 🐆

How to Use

  1. Clone this repository to your local machine or download the ip-api.zsh file directly.

  2. Open your ZSH configuration file (usually .zshrc) in a text editor.

  3. Import the ip-api.zsh file by adding the following line to your .zshrc file: source /path/to/ip-api.zsh

  4. Replace /path/to/ip-api.zsh with the actual path to the ip-api.zsh file on your system.

  5. Save and close the .zshrc file.

  6. Run source ~/.zshrc to apply the changes.

To use the ipapi function, open a new terminal session and run the following command:

ipapi <ip_address>

Replace <ip_address> with the IP address you want to retrieve information for.

Dependencies

Curl

JQ

About

Simple ZSH config to retrieve ip address informations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages