dotfiles/fish.configlink/functions/ip.fish
2022-04-30 10:21:43 -04:00

6 lines
91 B
Fish

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