mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 01:05:38 +00:00
8 lines
128 B
Fish
8 lines
128 B
Fish
|
function ip
|
||
|
if count $argv > /dev/null
|
||
|
curl ipinfo.io/$argv
|
||
|
else
|
||
|
curl checkip.amazonaws.com
|
||
|
end
|
||
|
end
|