dotfiles/modules/shell/fish/functions/ip.fish
2022-05-06 09:44:21 -04:00

6 lines
91 B
Fish

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