Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@abdennour
Last active March 8, 2018 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdennour/7aa9df0c788f52a816edfbc0329e2741 to your computer and use it in GitHub Desktop.
Save abdennour/7aa9df0c788f52a816edfbc0329e2741 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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