Correction bug publicip + passage de vim à nvim

This commit is contained in:
Benjamin VAUDOUR 2022-01-09 07:43:34 +00:00
parent 9d91d22cb6
commit 50cb8f4d21
2 changed files with 1 additions and 3 deletions

View File

@ -1,8 +1,6 @@
edit:add-var publicip~ {|@argv| edit:add-var publicip~ {|@argv|
use framagit.org/benjamin.vaudour/elv-lib/mods/common use framagit.org/benjamin.vaudour/elv-lib/mods/common
var f = {|t| var f = {|t|
use moi/util/condition
set t = (common:cond (eq $t -6) -6 -4)
var l = (common:cond (eq $t -6) 'IPv6: ' 'IPv4: ') var l = (common:cond (eq $t -6) 'IPv6: ' 'IPv4: ')
e:curl $t ifconfig.co/ip 2> /dev/null | each {|ip| echo (styled $l bold yellow) $ip} e:curl $t ifconfig.co/ip 2> /dev/null | each {|ip| echo (styled $l bold yellow) $ip}
} }

View File

@ -1,4 +1,4 @@
var cmd = $e:vim~ var cmd = $e:nvim~
edit:add-var vi~ {|@argv| $cmd $@argv } edit:add-var vi~ {|@argv| $cmd $@argv }
edit:add-var vb~ {|@argv| $cmd $@argv ~/.bashrc } edit:add-var vb~ {|@argv| $cmd $@argv ~/.bashrc }