dotfiles/.config/fish/functions/pubip.fish

8 lines
135 B
Fish

function pubip
if type -q jq
command curl -s ipinfo.io | command jq
else
command curl -s ipinfo.io
end
end