X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=contrib%2Fcompletion%2Flei-completion.bash;h=fbda474c10bc43b975494fecd0c336476f06c6e0;hp=0b82b1092a9ec2b754bcf9fb32856fa318240fe2;hb=298751baed3ce7ae1549356152784b83220a31f0;hpb=36ee63d30ee076e6f6a8fdeabd50bf6757a3fdd6 diff --git a/contrib/completion/lei-completion.bash b/contrib/completion/lei-completion.bash index 0b82b109..fbda474c 100644 --- a/contrib/completion/lei-completion.bash +++ b/contrib/completion/lei-completion.bash @@ -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