Skip to content

Commit

Permalink
Use profile selected by Bash parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
iainelder committed Sep 18, 2024
1 parent 963d342 commit bae5a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/profile/awsenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit bae5a7a

Please sign in to comment.