Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Completion too slow #177

Open
kindlychung opened this issue Apr 9, 2016 · 2 comments
Open

Completion too slow #177

kindlychung opened this issue Apr 9, 2016 · 2 comments

Comments

@kindlychung
Copy link

Just tried it with cargo, it takes almost half a second to complete any option. That's better than nothing, but the performance could really use some improvement.

@BurntSushi
Copy link
Member

How did you build the command line tool?

Please, provide more information when reporting bugs, otherwise I can't help.

@kindlychung
Copy link
Author

I built the tool as instructed:

# Download and build `docopt-wordlist` (as part of the Docopt package)
$ git clone git://github.com/docopt/docopt.rs
$ cd docopt.rs
$ cargo build --release

# Now setup tab completion (for bash)
$ echo "DOCOPT_WORDLIST_BIN=\"$(pwd)/target/release/docopt-wordlist\"" >> $HOME/.bash_completion
$ echo "source \"$(pwd)/completions/docopt-wordlist.bash\"" >> $HOME/.bash_completion
$ echo "complete -F _docopt_wordlist_commands cargo" >> $HOME/.bash_completion

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants