mirror of
https://framagit.org/benjamin.vaudour/elv-lib.git
synced 2024-01-13 09:20:05 +01:00
Add doas completion (2) (missing file in previous commit)
This commit is contained in:
parent
9f25786e60
commit
406023ed33
1 changed files with 10 additions and 0 deletions
10
completion/doas.elv
Normal file
10
completion/doas.elv
Normal file
|
@ -0,0 +1,10 @@
|
|||
fn complete {|@argv|
|
||||
if (and (> (count $argv) 2) (has-key $edit:completion:arg-completer $argv[1])) {
|
||||
$edit:completion:arg-completer[$argv[1]] (all $argv[1:])
|
||||
} else {
|
||||
edit:complete-sudo $@argv
|
||||
}
|
||||
}
|
||||
|
||||
set edit:completion:arg-completer[doas] = $edit:complete-sudo~
|
||||
#edit:completion:arg-completer[doas] = $-complete~
|
Loading…
Add table
Reference in a new issue