From 50cb8f4d210b815dccb3a11d2bc1d3d3ef8a5b8c Mon Sep 17 00:00:00 2001 From: Benjamin VAUDOUR Date: Sun, 9 Jan 2022 07:43:34 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20bug=20publicip=20+=20passage=20de?= =?UTF-8?q?=20vim=20=C3=A0=20nvim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases/publicip.elv | 2 -- aliases/vi.elv | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/aliases/publicip.elv b/aliases/publicip.elv index 4786ffa..b76f17b 100644 --- a/aliases/publicip.elv +++ b/aliases/publicip.elv @@ -1,8 +1,6 @@ edit:add-var publicip~ {|@argv| use framagit.org/benjamin.vaudour/elv-lib/mods/common 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: ') e:curl $t ifconfig.co/ip 2> /dev/null | each {|ip| echo (styled $l bold yellow) $ip} } diff --git a/aliases/vi.elv b/aliases/vi.elv index b9e6ecf..f3cb39b 100644 --- a/aliases/vi.elv +++ b/aliases/vi.elv @@ -1,4 +1,4 @@ -var cmd = $e:vim~ +var cmd = $e:nvim~ edit:add-var vi~ {|@argv| $cmd $@argv } edit:add-var vb~ {|@argv| $cmd $@argv ~/.bashrc }