Created
May 18, 2018 08:07
-
-
Save saurabh-hirani/8dd62d4521070ed4166734d4fb3678db to your computer and use it in GitHub Desktop.
File path: ~/.oh-my-zsh/completions/_set-aws-profile
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 | |
} | |
_set-aws-profile "$@" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment