blob: 1aea2f72c1eedac7d25936598df1fff8c95c5cfd (
plain) (
blame)
1
2
3
|
function get-location-from-ip --description 'Get location from IP addres'
curl -s https://ipvigilante.com/(curl -s https://ipinfo.io/ip) | jq '.data.latitude, .data.longitude, .data.city_name, .data.country_name'
end
|