Created
May 18, 2018 07:56
-
-
Save saurabh-hirani/351f8f24975e60f928303fe74846e958 to your computer and use it in GitHub Desktop.
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-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