]> Sergey Matveev's repositories - public-inbox.git/blobdiff - contrib/completion/lei-completion.bash
lei add-external: completion for existing URL basenames
[public-inbox.git] / contrib / completion / lei-completion.bash
index 0b82b1092a9ec2b754bcf9fb32856fa318240fe2..fbda474c10bc43b975494fecd0c336476f06c6e0 100644 (file)
@@ -4,6 +4,12 @@
 # preliminary bash completion support for lei (Local Email Interface)
 # Needs a lot of work, see `lei__complete' in lib/PublicInbox::LEI.pm
 _lei() {
+       case ${COMP_WORDS[@]} in
+       *' add-external http'*)
+               compopt -o nospace
+               ;;
+       *) compopt +o nospace ;; # the default
+       esac
        COMPREPLY=($(compgen -W "$(lei _complete ${COMP_WORDS[@]})" \
                        -- "${COMP_WORDS[COMP_CWORD]}"))
        return 0