export AWSPATH=$HOME/.aws

function aws {
    source $AWSPATH/$1
}

function _aws_envs {
    reply=($(ls $AWSPATH))
}
compctl -K _aws_envs aws

export AWSPATH=$HOME/.aws

function aws_env {
    source $AWSPATH/$1
}

function _aws_envs {
    reply=($(ls $AWSPATH))
}
compctl -K _aws_envs aws_env

Rename alias so it doesn't conflict with the aws cli tools
[aws_env] Rename alias so it doesn't conflict with the aws cli tools
