Skip to content

Instantly share code, notes, and snippets.

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