-
Notifications
You must be signed in to change notification settings - Fork 516
Add completion troubleshooting guide #4821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
author: bebound | ||
ms.author: hanglei | ||
ms.date: 11/29/2024 | ||
ms.topic: include | ||
--- | ||
### Completion isn't working | ||
|
||
For Bash users, the completion script is installed in `/etc/bash_completion.d/azure-cli`. If it is not automatically executed, add the following line to your `~/.bashrc` file, then save and reload your Bash profile: | ||
|
||
```bash | ||
source /etc/bash_completion.d/azure-cli | ||
``` | ||
|
||
For Zsh users, add the following two lines in your `~/.zshrc` file, then save and reload your Zsh profile: | ||
|
||
```zsh | ||
autoload -U +X bashcompinit && bashcompinit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this command automatically load There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No,
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the purpose and source of this Found some explanation on it: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Source of this command: https://stackoverflow.com/a/49277309/2251785
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The AWS document https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-completion.html uses
Our document for MacOS https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-macos#completion-isnt-working also only uses
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
After reading these docs. It seems
For Also, |
||
source /etc/bash_completion.d/azure-cli | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.