Skip to content

Commit 6acc66f

Browse files
committed
Init
1 parent c5fb17f commit 6acc66f

File tree

6 files changed

+28
-1
lines changed

6 files changed

+28
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ _themes/
66
_themes.MSDN.Modern/
77
_themes.VS.Modern/
88
.vscode
9+
.idea
910

1011
.openpublishing.buildcore.ps1
1112
*.swp

docs-ref-conceptual/includes/cli-install-linux-apt.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,5 @@ If your proxy doesn't use basic auth, __remove__ the `[username]:[password]@` po
237237
In order to get the Microsoft signing key and get the package from our repository, your proxy needs to allow HTTPS connections to the following address: `https://packages.microsoft.com.
238238
239239
[!INCLUDE[troubleshoot-wsl.md](troubleshoot-wsl.md)]
240+
241+
[!INCLUDE[linux-completion.md](linux-completion.md)]

docs-ref-conceptual/includes/cli-install-linux-dnf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,5 @@ allow HTTPS connections to the following address:
193193
* `https://packages.microsoft.com`
194194

195195
[!INCLUDE[troubleshoot-wsl.md](troubleshoot-wsl.md)]
196+
197+
[!INCLUDE[linux-completion.md](linux-completion.md)]

docs-ref-conceptual/includes/cli-install-linux-tdnf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ sudo tdnf remove azure-cli
6161
### Remove data
6262

6363
[!INCLUDE [remove-data-boilerplate.md](remove-data-boilerplate.md)]
64+
65+
[!INCLUDE[linux-completion.md](linux-completion.md)]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
author: bebound
3+
ms.author: hanglei
4+
ms.date: 11/29/2024
5+
ms.topic: include
6+
---
7+
### Completion isn't working
8+
9+
For Bash users, the completion script is installed in `/etc/bash_completion.d/azure-cli`, which should be loaded automatically. If it doesn't work, you can manually add the following line to your `~/.bashrc` file, then save and reload your Bash profile:
10+
11+
```bash
12+
source /etc/bash_completion.d/azure-cli
13+
```
14+
15+
For Zsh users, please add the following two lines in your `~/.zshrc` file, then save and reload your Zsh profile:
16+
17+
```zsh
18+
autoload -U +X bashcompinit && bashcompinit
19+
source /etc/bash_completion.d/azure-cli
20+
```

docs-ref-conceptual/install-azure-cli-macos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you encounter a problem when installing the CLI through Homebrew, here are so
3838

3939
### Completion isn't working
4040

41-
The Homebrew formula of Azure CLI installs a completion file named `az` in the Homebrew-managed completions directory (default location is `/usr/local/etc/bash_completion.d/`). To enable completion, follow Homebrew's instructions [here](https://docs.brew.sh/Shell-Completion).
41+
The Homebrew formula of Azure CLI installs a completion file named `az` in the Homebrew-managed completions directory (default location is `$(brew --prefix)/etc/bash_completion.d/`). To enable completion, follow Homebrew's instructions [here](https://docs.brew.sh/Shell-Completion).
4242

4343
For Zsh, add the following two lines to the bottom of your `.zshrc` file, then save and reload your Zsh profile.
4444

0 commit comments

Comments
 (0)