]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: completion: fix filename completion
authorEric Wong <e@80x24.org>
Tue, 5 Jan 2021 09:04:34 +0000 (09:04 +0000)
committerEric Wong <e@80x24.org>
Wed, 6 Jan 2021 10:45:06 +0000 (10:45 +0000)
"-o default" is what we want from "complete", "-o filename" just
tells readline the result from the "_lei" function might be a
filename and quote appropriately.

contrib/completion/lei-completion.bash

index 5f47433b36e4210f243992dce04e08f6d928d7ca..0b82b1092a9ec2b754bcf9fb32856fa318240fe2 100644 (file)
@@ -8,4 +8,4 @@ _lei() {
                        -- "${COMP_WORDS[COMP_CWORD]}"))
        return 0
 }
-complete -o filenames -o bashdefault -F _lei lei
+complete -o default -o bashdefault -F _lei lei