autocomplete for fish shell
Problem
I see there is already a virt env for fish (/usr/local/aws/bin/activate.fish) can you please also add an autocompleter for the fish shell?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Add Autocompletion for AWS CLI in Fish Shell
The AWS CLI does not natively support autocompletion for the Fish shell, which leads to a lack of command suggestions and completion features for users. The existing activate.fish script is for virtual environment activation and does not include autocompletion functionality.
Awaiting Verification
Be the first to verify this fix
- 1
Install Fish Shell Completion Script
Download the Fish shell completion script for AWS CLI from the official AWS repository to enable autocompletion.
bashcurl -o ~/.config/fish/completions/aws.fish https://raw.githubusercontent.com/aws/aws-cli/v2/complete/fish/aws.fish - 2
Source the Completion Script
Ensure that the Fish shell sources the new completion script by adding it to your Fish configuration file.
bashecho 'source ~/.config/fish/completions/aws.fish' >> ~/.config/fish/config.fish - 3
Reload Fish Configuration
Reload the Fish shell configuration to apply the changes made to the completions.
bashexec fish - 4
Test Autocompletion
Verify that the autocompletion is working by typing 'aws ' followed by pressing the Tab key to see if command suggestions appear.
Validation
After completing the steps, type 'aws ' and press the Tab key in the Fish shell. If you see a list of available AWS CLI commands, the autocompletion has been successfully implemented.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep