Created
May 18, 2018 08:08
-
-
Save saurabh-hirani/4a6a1559ffb7ab890a34977887cd8c20 to your computer and use it in GitHub Desktop.
File path: ~/.oh-my-zsh/completions/_set-aws-keys
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
#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