| title | How to use the 'blobfuse2 completion bash' command to generate the autocompletion script for BlobFuse2 |
|---|---|
| titleSuffix | Azure Storage |
| description | Learn how to use the completion bash command to generate the autocompletion script for BlobFuse2. |
| author | akashdubey-ms |
| ms.service | azure-blob-storage |
| ms.topic | how-to |
| ms.date | 12/02/2022 |
| ms.author | akashdubey |
Use the blobfuse2 completion bash command to generate the autocompletion script for BlobFuse2 for the bash shell.
blobfuse2 completion bash --[flag-name]=[flag-value]
Flags that apply to blobfuse2 completion bash are inherited from the grandparent command, blobfuse2, or apply only to the blobfuse2 completion subcommands.
The following flags are inherited from grandparent command blobfuse2:
| Flag | Short version | Value type | Default value | Description |
|---|---|---|---|---|
| disable-version-check | boolean | false | Enables or disables automatic version checking of the BlobFuse2 binaries | |
| help | -h | n/a | Help info for the blobfuse2 command and subcommands |
The following flags apply only to the blobfuse2 completion subcommands:
| Flag | Value type | Default value | Description |
|---|---|---|---|
| no-descriptions | boolean | false | Disable completion descriptions |
The generated script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.
To load completions in your current shell session:
source <(blobfuse2 completion bash)To load completions for every new session, execute once:
-
On Linux:
blobfuse2 completion bash > /etc/bash_completion.d/blobfuse2 -
On macOS:
blobfuse2 completion bash > /usr/local/etc/bash_completion.d/blobfuse2
Note
You will need to start a new shell for this setup to take effect.