summaryrefslogblamecommitdiffstats
path: root/bash_functions.d/get-location-from-ip.sh
blob: 840de2bf478f777ead318a6b23192af2e6493dcf (plain) (tree)
1
2
3


                                                                                                                                                   
get-location-from-ip() {
	curl -s https://ipvigilante.com/$(curl -s https://ipinfo.io/ip) | jq '.data.latitude, .data.longitude, .data.city_name, .data.country_name'
}