Skip to content

Instantly share code, notes, and snippets.

@saurabh-hirani
Created May 18, 2018 07:56
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 saurabh-hirani/351f8f24975e60f928303fe74846e958 to your computer and use it in GitHub Desktop.
Save saurabh-hirani/351f8f24975e60f928303fe74846e958 to your computer and use it in GitHub Desktop.
#compdef set-aws-profile
_set-aws-profile() {
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments '1: :->csi'
case $state in
csi)
_arguments "1: :($(aws-profiles))"
;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment