1
0
mirror of https://github.com/akelge/zsh synced 2025-07-03 05:05:28 +00:00
Files
zsh/zsh.d/zshfunctions/awslogin
Andrea Mistrali c5825d2137 Cleanups
2021-08-09 16:03:13 +02:00

12 lines
274 B
Plaintext

if [[ -z "$1" ]]
then
unset AWS_DEFAULT_PROFILE AWS_PROFILE AWS_EB_PROFILE
echo AWS profile cleared.
return
fi
#saml2aws login -a $1 -p $1
#eval $(saml2aws script -a $1 -p $1 --skip-prompt)
export AWS_DEFAULT_PROFILE=$1
export AWS_PROFILE=$1
export AWS_EB_PROFILE=$1