dotfiles/fish.configlink/functions/ip.fish

8 lines
128 B
Fish
Raw Permalink Normal View History

function ip
if count $argv > /dev/null
curl ipinfo.io/$argv
else
curl checkip.amazonaws.com
end
end