Last active
March 8, 2018 07:08
-
-
Save abdennour/7aa9df0c788f52a816edfbc0329e2741 to your computer and use it in GitHub Desktop.
Install AWS Auto Completer for ZSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install it on-fly with one command line
Don't forget to add the following line in
~/.zshrc
: