dotfiles/modules/common/shell/fish/functions/ip.fish
2023-02-20 20:37:37 -05:00

6 lines
91 B
Fish

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