.config/fish/functions/public-ip.fish
1 2 3 4
function public-ip --description 'Fetch current public IP address' curl 'http://icanhazip.com/' #curl 'https://j3s.sh/ip.html' end