Skip to content

Commit

Permalink
Change environment variable to use AWS_PROFILE for sdk compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
solarchad committed Jul 10, 2019
1 parent 903da81 commit a4149f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/aws.fish
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ function aws -a cmd -d 'Universal CLI for AWS'
switch "$cmd"
case profile
if set -q argv[2]
set -gx AWS_DEFAULT_PROFILE "$argv[2]"
set -gx AWS_PROFILE "$argv[2]"
else if set -q FILTER
aws profiles | command env $FILTER | read -gx AWS_DEFAULT_PROFILE
echo $AWS_DEFAULT_PROFILE
aws profiles | command env $FILTER | read -gx AWS_PROFILE
echo $AWS_PROFILE
else
echo $AWS_DEFAULT_PROFILE
echo $AWS_PROFILE
end

case profiles
Expand Down

0 comments on commit a4149f4

Please sign in to comment.