FG
☁️ Cloud & DevOpsAmazon

autocomplete for fish shell

Freshabout 21 hours ago
Mar 14, 20260 views
Confidence Score95%
95%

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

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Add Autocompletion for AWS CLI in Fish Shell

Low Risk

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. 1

    Install Fish Shell Completion Script

    Download the Fish shell completion script for AWS CLI from the official AWS repository to enable autocompletion.

    bash
    curl -o ~/.config/fish/completions/aws.fish https://raw.githubusercontent.com/aws/aws-cli/v2/complete/fish/aws.fish
  2. 2

    Source the Completion Script

    Ensure that the Fish shell sources the new completion script by adding it to your Fish configuration file.

    bash
    echo 'source ~/.config/fish/completions/aws.fish' >> ~/.config/fish/config.fish
  3. 3

    Reload Fish Configuration

    Reload the Fish shell configuration to apply the changes made to the completions.

    bash
    exec fish
  4. 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

AC

Alex Chen

2450 rep

Tags

awsclicloudfeature-requestautocomplete