Skip to content

imtoopunkforyou/myip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

myip

Bash script to fetch IP address information.
To obtain information, a request will be sent to ipinfo.io

~ > myip  
┌─────────────────────────────┐
│       IP Information        │
└─────────────────────────────┘
IP:           123.456.78.90
Hostname:     null
City:         CityName
Region:       Region Name
Country:      RN (12.3456,7.8910)
Postal Code:  1122
Organization: Organization Name.

Installation

  1. Install Dependencies
sudo apt install jq curl
  1. Download the script:
curl -O https://raw.githubusercontent.com/imtoopunkforyou/myip/refs/heads/main/myip.sh
  1. Make executable:
chmod +x myip.sh

Usage

  • Simply run:
./myip.sh

Alias Setup

Add to your shell configuration (.bashrc/.zshrc):

alias myip="/path/to/myip.sh"

About

The script shows your current ip in the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages