mirror of
https://github.com/reonokiy/dotfiles.git
synced 2025-06-15 14:12:53 +02:00
update aws
This commit is contained in:
parent
24c8d3d1cb
commit
8bd63f012c
2 changed files with 21 additions and 0 deletions
11
dot_config/fish/functions/fish_aws_profile.fish
Normal file
11
dot_config/fish/functions/fish_aws_profile.fish
Normal file
|
@ -0,0 +1,11 @@
|
|||
function fish_aws_profile
|
||||
if test (count $argv) -eq 0
|
||||
set -e AWS_PROFILE
|
||||
echo "AWS profile cleared"
|
||||
return 0
|
||||
end
|
||||
|
||||
set -gx AWS_PROFILE $argv[1]
|
||||
echo "AWS profile set to $AWS_PROFILE"
|
||||
end
|
||||
|
|
@ -18,3 +18,13 @@ disabled = false
|
|||
[container]
|
||||
disabled = true
|
||||
{{ end }}
|
||||
|
||||
|
||||
[aws]
|
||||
format = 'on [$symbol($profile )(\($region\) )]($style)'
|
||||
style = 'bold blue'
|
||||
symbol = '🅰 '
|
||||
[aws.region_aliases]
|
||||
ap-east-1 = 'hk'
|
||||
ap-southeast-1 = 'sg'
|
||||
ap-northeast-1 = 'tokyo'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue