diff options
author | Pavol Juhas <pavol.juhas@gmail.com> | 2014-03-17 19:48:10 -0400 |
---|---|---|
committer | Pavol Juhas <pavol.juhas@gmail.com> | 2014-03-17 19:48:10 -0400 |
commit | 6952105bfe1fd4121fd355dc5f8ec5e03de5541c (patch) | |
tree | 604e65e52df88e28f99f49b939aa9547eb009b1c /plugins/aws | |
parent | ed19ffee5ecc0db6617c1ae753e515d60cb486c6 (diff) | |
parent | ca900216302aa1138c793971cf877b5d4e88fb06 (diff) | |
download | zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.tar.gz zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.tar.bz2 zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/aws')
-rw-r--r-- | plugins/aws/aws.plugin.zsh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh new file mode 100644 index 000000000..3f7fb1995 --- /dev/null +++ b/plugins/aws/aws.plugin.zsh @@ -0,0 +1,17 @@ +export AWS_HOME=~/.aws + +function agp { + echo $AWS_DEFAULT_PROFILE + +} +function asp { + export AWS_DEFAULT_PROFILE=$1 + export RPROMPT="<aws:$AWS_DEFAULT_PROFILE>" + +} +function aws_profiles { + reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_-]*\).*/\1/')) +} + +compctl -K aws_profiles asp +source `which aws_zsh_completer.sh` |