From 80a9f5957a7cdc375cace4e5385449c135d7ef9b Mon Sep 17 00:00:00 2001 From: Benjamin VAUDOUR Date: Sat, 6 Nov 2021 10:46:44 +0100 Subject: [PATCH] =?UTF-8?q?Compl=C3=A9tion=20=E2=80=93=20on=20privil=C3=A9?= =?UTF-8?q?gie=20quand=20m=C3=AAme=20ma=20compl=C3=A9tion=20=C3=A0=20moi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/moi/completion.elv | 14 +++++++------- rc.elv | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/moi/completion.elv b/lib/moi/completion.elv index fffb64f..157d1ae 100644 --- a/lib/moi/completion.elv +++ b/lib/moi/completion.elv @@ -1,12 +1,12 @@ #use github.com/zzamboni/elvish-completions/builtins -use github.com/zzamboni/elvish-completions/cd -use github.com/zzamboni/elvish-completions/git -set git:git-command = hub -set git:git-completions[checkout] = [ { git:MODIFIED; git:BRANCHES &all } ... ] -git:init +#use github.com/zzamboni/elvish-completions/cd +#use github.com/zzamboni/elvish-completions/git +#set git:git-command = hub +#set git:git-completions[checkout] = [ { git:MODIFIED; git:BRANCHES &all } ... ] +#git:init #use github.com/zzamboni/elvish-completions/ssh -use github.com/xiaq/edit.elv/compl/go +#use github.com/xiaq/edit.elv/compl/go use ./completion/arc use ./completion/archiver @@ -15,5 +15,5 @@ use ./completion/kcp use ./completion/mpv use ./completion/pacman use ./completion/ssh -use ./completion/sudo +#use ./completion/sudo use ./completion/use diff --git a/rc.elv b/rc.elv index 46c5d54..3940203 100644 --- a/rc.elv +++ b/rc.elv @@ -20,13 +20,13 @@ set edit:insert:binding[Ctrl-H] = $edit:histlist:start~ set edit:prompt = { go-prompt } set edit:rprompt = { nop } +# Carapace completion : https://github.com/rsteube/carapace-bin +eval (carapace _carapace|slurp) + use moi/completion use moi/alias use moi/util/common -# Carapace completion : https://github.com/rsteube/carapace-bin -eval (carapace _carapace|slurp) - { use ./aliases/get-uid uid if (not (uid:-is-root)) {