Created
July 25, 2024 04:06
-
-
Save diegofcornejo/f4c752ce05fb541612d98efb60e93074 to your computer and use it in GitHub Desktop.
Get IP from bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias myip=ipinfo | |
ipinfo() { | |
IP=$(curl -s https://ipinfo.io/ip) | |
curl -s "https://ipinfo.io/widget/demo/$IP" | jq | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment