elv-lib/completion/desarchiver.elv

11 lines
203 B
Plaintext
Raw Normal View History

2021-12-26 15:40:57 +00:00
use ./file
var extensions = [ tar bz2 zip gz lz4 sz xz zst rar ]
fn complete {|@argv|
var m = $argv[-1]
file:complete $m $@extensions
}
set edit:completion:arg-completer[desarchiver] = $complete~