zsh autocompletion on OSX/macOS
See original GitHub issueEvery time I launch my terminal I get the following error: /Users/blake/lib/azure-cli/az.completion:10: command not found: complete
I followed the curl -L https://aka.ms/InstallAzureCli | bash
docs exactly and the file is there although in a weird location (the default). Is anyone else running into this?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:24 (5 by maintainers)
Top Results From Across the Web
macOS transition from Bash to Zsh | by Remo Hoeppli - Medium
This blog post is about my findings from my personal transition from Bash to Zsh and describes how I got auto-completion for some...
Read more >Setting up Bash Completions for Azure CLI on a Mac with zsh
Since the Azure CLI command is “az” that is the completion to choose. Sources. zsh autocompletion on OSX/macOS · Issue #1722 · Azure/azure-cli ......
Read more >macOS Fix Zsh auto-completion and get more - Sindastra
Getting more auto-completions Again, save, close, close and reopen your terminal. Now you should have auto-completion for additional commands ...
Read more >Enabling Command Autocompletion in ZSH - Tanner's Tech
Enabling Command Autocompletion in ZSH. My current workstation setup consists of a 16" M1 Pro MacBook Pro. I have thoroughly enjoyed it but ......
Read more >Moving to zsh, part 5: Completions - Scripting OS X
In the default configuration, tab completion in zsh is very basic. It will complete commands and paths, but not much else.
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
I also just encountered this.
Installed via
$ curl -L https://aka.ms/InstallAzureCli | bash
If I update my .zshrc and add
autoload bashcompinit && bashcompinit
in the line before sourcing
azure-cli/az.completion
it works fine.@niemyjski you are right - turns out it only worked because I am loading the Google Cloud Platform bash completion script before this.
So it seems that independent of zsh version you must have
autoload bashcompinit && bashcompinit
in your bashrc before sourcing the Azure bash completion script.