From 1c8457f7ec92d1a07f877ef5eaace579caa2e221 Mon Sep 17 00:00:00 2001 From: Benjamin VAUDOUR Date: Fri, 15 Sep 2023 12:01:13 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20du=20r=C3=A9pertoire=20de=20stoc?= =?UTF-8?q?kage=20des=20IPs,=20modification=20de=20l=E2=80=99aliase=20pour?= =?UTF-8?q?=20erd,=20ajout=20d=E2=80=99un=20alias=20pour=20trdsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases/addbadips.elv | 4 ++-- aliases/aliases.elv | 5 +++-- rc.elv | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/aliases/addbadips.elv b/aliases/addbadips.elv index 38c4ba4..3b63b11 100644 --- a/aliases/addbadips.elv +++ b/aliases/addbadips.elv @@ -25,9 +25,9 @@ edit:add-var addbadips~ {|@argv| var ip4 ip6 = (list:filter $ip:is-ip~ $argv | list:unzip {|_ ip| ip:is-ipv4 $ip}) if (list:is-not-empty $ip4) { - add $E:HOME/bad_ips.txt $ip:comp4~ $ip4 IPv4s + add $E:HOME/ips/bad_ips.txt $ip:comp4~ $ip4 IPv4s } if (list:is-not-empty $ip6) { - add $E:HOME/bad_ipsv6.txt $ip:comp6~ $ip6 IPv6s + add $E:HOME/ips/bad_ipsv6.txt $ip:comp6~ $ip6 IPv6s } } diff --git a/aliases/aliases.elv b/aliases/aliases.elv index 05f0561..74fc1ab 100644 --- a/aliases/aliases.elv +++ b/aliases/aliases.elv @@ -7,8 +7,8 @@ edit:add-var diff~ $e:colordiff~ edit:add-var dig~ {|@argv| e:dig +noall +answer $@argv } edit:add-var dogall~ {|@argv| e:dog A AAAA CNAME TXT MX NS SOA $@argv } edit:add-var du~ {|@argv| e:du -h $@argv } -fn -erd {|@argv| e:erd -HlI --dirs-first $@argv } -edit:add-var erd~ $-erd~ +fn -erd {|@argv| e:erd -HlI --dir-order last --sort name --layout inverted $@argv } +#edit:add-var erd~ $-erd~ #edit:add-var git~ $e:hub~ edit:add-var grep~ {|@argv| e:grep --color=tty -d skip $@argv } #edit:add-var grep~ {|@argv| e:ack $@argv } @@ -19,6 +19,7 @@ edit:add-var rm~ {|@argv| e:rm -Iv $@argv } edit:add-var rename~ $e:go-rename~ edit:add-var sudo~ {|@argv| fail 'Use doas instead'} edit:add-var timidity~ {|@argv| e:timidity -a -K -1 $@argv } +edit:add-var trdsql~ {|@argv| e:trdsql -ih -id ';' -omd $@argv } #edit:add-var tree~ {|@argv| e:tree -puhC --dirsfirst --du -D $@argv } edit:add-var tree~ $-erd~ edit:add-var ungron~ {|@argv| e:gron --ungron $@argv } diff --git a/rc.elv b/rc.elv index ef72496..b9d5319 100644 --- a/rc.elv +++ b/rc.elv @@ -11,6 +11,7 @@ set-env CURRENT_SHELL 'elvish' set-env STARSHIP_CONFIG ~/.config/starship/starship.toml set-env PERL5LIB /home/benjamin/perl5/lib/perl5 set-env NODE_OPTIONS --openssl-legacy-provider +set-env QSV_SNIFF_DELIMITER 1 set @paths = $@paths /home/benjamin/bin /home/benjamin/Go/bin /home/benjamin/perl5/bin {