跳转到主内容

AWS 上下文

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示当前激活的 AWS 配置文件和区域。

示例配置

{
"type": "aws",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#FFA400",
"template": "  {{.Profile}}{{if .Region}}@{{.Region}}{{end}}"
}

选项

NameTypeDefaultDescription
display_defaultbooleantruedisplay the segment when default user or not

模板 (信息)

默认模板
 {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }}

属性

NameTypeDescription
.Profilestringthe currently active profile
.Regionstringthe currently active region
.RegionAliasstringshort alias for the currently active region