Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install AWS Auto Completer for ZSH
#!/bin/bash
# Retrieve the version of AWS
AWS_VERSION=$(aws --version | cut -f1 -d" " | cut -f2 -d"/");
echo Your current AWS version is $AWS_VERSION;
REMOTE_PATH=https://raw.githubusercontent.com/aws/aws-cli/$AWS_VERSION/bin/aws_zsh_completer.sh
LOCAL_PATH=/usr/local/bin/aws_zsh_completer.sh;
echo Installing AWS autocompleter for AWS $AWS_VERSION;
curl -sSL $REMOTE_PATH > $LOCAL_PATH && chmod u+x $LOCAL_PATH;
echo "Now , Run: source $LOCAL_PATH"
@abdennour

This comment has been minimized.

Copy link
Owner Author

@abdennour abdennour commented Mar 8, 2018

Install it on-fly with one command line

curl -s -L https://gist.githubusercontent.com/abdennour/7aa9df0c788f52a816edfbc0329e2741/raw/692d56bef53230f4b21b5f978f6c2a0c18b7a60c/install_aws_zsh_complete.sh | bash

Don't forget to add the following line in ~/.zshrc:

source /usr/local/bin/aws_zsh_completer.sh;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment