edit:add-var publicip~ {|@argv| var f = {|t| use moi/util/condition set t = (condition:cset (eq $t -6) -6 -4) var l = (condition:cset (eq $t -6) 'IPv6: ' 'IPv4: ') curl $t ifconfig.co/ip 2> /dev/null | each {|ip| echo (styled $l bold yellow) $ip } } $f -4 $f -6 }