dotfiles/modules/common/shell/fish/functions/ip.fish

6 lines
91 B
Fish
Raw Permalink Normal View History

2022-04-30 14:21:43 +00:00
if count $argv >/dev/null
curl ipinfo.io/$argv
else
curl checkip.amazonaws.com
end