question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

zsh autocompletion on OSX/macOS

See original GitHub issue

Every 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:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

38reactions
berndverstcommented, Feb 6, 2017

I also just encountered this.

$ sw_vers -productVersion
10.12.3
$ zsh --version
zsh 5.2 (x86_64-apple-darwin16.0)
$ echo $SHELL
/bin/zsh

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.

7reactions
berndverstcommented, Feb 9, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found