elv-lib/completion/49.3.elv

11 lines
327 B
Plaintext
Raw Permalink Normal View History

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[49.3] = $edit:complete-sudo~
#edit:completion:arg-completer[doas] = $-complete~