diff --git a/scripts/profile/awsenv.sh b/scripts/profile/awsenv.sh index b553d712..3fc3863c 100644 --- a/scripts/profile/awsenv.sh +++ b/scripts/profile/awsenv.sh @@ -3,7 +3,7 @@ function login { } function use-profile { - export AWS_PROFILE="$(aws configure list-profiles | fzf)" + export AWS_PROFILE="$(aws configure list-profiles | fzf --query "$1" --select-1)" printf "%s\n" "$AWS_PROFILE" }