ZSH completion breaks path completion
See original GitHub issueIf I’m not missing something, this indeed helps to autocomplete commands for dotnet
, but equally it will break normal path completion.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
How to prevent zsh path completion magic until I press TAB?
Zsh doesn't start doing any kind of completion magic until you press Tab in a “normal” configuration. It can be done but it...
Read more >Zsh tab-completion not working
Hello, after switching from Bash to Zsh on macOS Catalina, Tab completion stopped working for me. Apparently it is working in directories where ......
Read more >zsh completion for all executables in path - linux
I have written a script which itself takes as an argument any arbitrary executable in my $PATH. Is there a way to create...
Read more >A Guide to the Zsh Completion with Examples
How work the Zsh completion system and how to configure it according to your needs, without any framework or bloated library.
Read more >Absolutely bizarre tab completion glitch : r/zsh
It's a tab completion issue specifically around underscores, and the fix is simply to add the following to .zshrc:.
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 FreeTop 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
Top GitHub Comments
Happy to help 😃
This is probably overkill but the ‘tabbing options over file path’ thing was irritating me so this improves the experience imo:
You can tell zsh to fallback to file path completion (when dotnet complete returns no suggestions) by changing
to
This gets auto completion working pretty close to how you’d expect. There is a slight niggle in that when tabbing after entering a command where you’d often enter a path, e.g.
dotnet add reference
, showing options takes precedent over the path. It’s easily worked around by entering the first char of the path (or./
say).