mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-05-11 05:55:17 +00:00
aws: really unset AWS*PROFILE variables in asp function (#7838)
This commit is contained in:
committed by
Marc Cornellà
parent
f5f630ff34
commit
4585c6662b
@@ -5,13 +5,15 @@ function agp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function asp {
|
function asp {
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
|
unset AWS_DEFAULT_PROFILE AWS_PROFILE AWS_EB_PROFILE
|
||||||
|
echo AWS profile cleared.
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
export AWS_DEFAULT_PROFILE=$1
|
export AWS_DEFAULT_PROFILE=$1
|
||||||
export AWS_PROFILE=$1
|
export AWS_PROFILE=$1
|
||||||
export AWS_EB_PROFILE=$1
|
export AWS_EB_PROFILE=$1
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
|
||||||
echo AWS profile cleared.
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function aws_change_access_key {
|
function aws_change_access_key {
|
||||||
|
Reference in New Issue
Block a user