]> Sergey Matveev's repositories - public-inbox.git/blobdiff - contrib/completion/lei-completion.bash
lei import: support shell completion of known folders
[public-inbox.git] / contrib / completion / lei-completion.bash
index 2c28d44a56463ab4e56f71fe02d51ae041e19502..5c137e68ac2ea5aec7237d7461b153a97d72a577 100644 (file)
@@ -9,6 +9,7 @@ _lei() {
        *':'* | *'='* | '//'*) compopt -o nospace ;;
        *) compopt +o nospace ;; # the default
        esac
+       wordlist="${wordlist//;/\\\\;}" # escape ';' for ';UIDVALIDITY' and such
        COMPREPLY=($(compgen -W "$wordlist" -- "${COMP_WORDS[COMP_CWORD]}"))
        return 0
 }