-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add autocompletion support for bash/zsh #33408
Copy link
Copy link
Open
Labels
AutocompleteFeature CandidatePossible-SolutionService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Metadata
Metadata
Assignees
Labels
AutocompleteFeature CandidatePossible-SolutionService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Related command
az completionIs your feature request related to a problem? Please describe.
When installing
azure-clion Arch-based distributions via AUR, the package installs to/opt/azure-cliand does not include a shell completion script. There is no file in/etc/bash_completion.d/or/usr/share/bash-completion/completions/, andaz completionis not a recognized subcommand. This means users get no tab-completion out of the box for zsh (or bash).Describe the solution you'd like
Ship a completion script with the AUR/Arch package, or provide a built-in
az completionsubcommand (similar tokubectl completion zsh,docker completion zsh, etc.) that outputs a working completion script for common shells.Describe alternatives you've considered
register-python-argcomplete azwith thepython-argcompletepackage — this works but requires an extra dependency and manual.zshrcconfiguration.Additional context
/opt/azure-clifind / -name "az.completion" -o -name "azure-cli"only returns/usr/share/licenses/azure-cliand/opt/azure-cli— no completion files.