CLI Autocomplete duplicates some commands/options
See original GitHub issueThis is a Bug Report
Description
CLI Autocomplete appears to duplicate some entries when hitting <tab><tab>. The autocomplete.json
file does not contain these duplicates. I’ve tried both Iterm and Terminal and get the same results. Not sure if the bug is in the CLI, tabtab, or my setup.


Additional Data
- Serverless Framework Version you’re using: 1.15.2
- Operating System: macOS 10.12.5
- iTerm2 Version you’re using: 3.1.beta.4
- Terminal Version you’re using: 2.7.2 (388.1)
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Zsh tab completion duplicating command name - Stack Overflow
When you type some text and ask zsh to complete zsh will say terminal to move cursor to specific location and type completed...
Read more >How to avoid duplicate completion in Bash
I defined the basic completion script. For program d, it can take subcommand exempt, limit, show, and update.
Read more >Shell Completion — Click Documentation (7.x)
Generally, the shell completion support will complete commands, options, and any option or argument values where the type is click.Choice .
Read more >Documentation: 15: psql - PostgreSQL
Perform a variable assignment, like the \set meta-command. Note that you must separate name and value, if any, by an equal sign on...
Read more >Tab completion in zsh makes duplicate characters - Super User
This means some kind of error has been printed, but then the command line got repainted on top of the error, albeit in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI I’ve noticed that running
won’t do/output anything if there are already the mentioned
tabtab
lines in~/.zshrc
(even if outcommented) — removing them and re-running does work here.The “duplicates” bug is still there though.
@pmuens Awesome! Thanks! Let me know if you need anymore info. I’ll also try it on my work laptop tomorrow and see if it repros there as well.