Skip to content

pheaver/whereAmI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whereAmI

ShellLicense

A shell script that returns you your ip address and its geolocation.

Installation

$ cd ~
$ git clone https://github.com/trozler/whereAmI.git

I recommend adding the following alias to your bashprofile (~/.bash_profile). ~/.bashrc should also work.

$ echo -e '\nalias myip="/bin/bash ~/whereamI/findmepls.sh"' >> ~/.bash_profile
$ source ~/.bash_profile

How to run

If you created the alias:

$ myip
88.2.154.243 - Balearic Islands, Spain.

Otherwise:

$ /bin/bash ~/whereAmI/findmepls.sh
88.2.154.243 - Balearic Islands, Spain.

Note on usage

This script utilises a free api which allows for 3 requests per second.

Lastly, if you are not connected to the internet, then well, you must be somewhere off the shoulder of Orion.

About

A one line shell script that returns you your ip address and its geolocation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages