mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
971 B
971 B
id | title | sidebar_label |
---|---|---|
aws | AWS Context | AWS |
What
Display the currently active AWS profile and region.
Sample Configuration
{
"type": "aws",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#FFA400",
"properties": {
"prefix": " \uE7AD ",
"template": "{{.Profile}}{{if .Region}}@{{.Region}}{{end}}"
}
}
Properties
- template:
string
- A go text/template template extended with sprig utilizing the properties below - defaults to{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}
- display_default:
boolean
- display the segment or not when the user profile matchesdefault
- defaults totrue
Template Properties
.Profile
:string
- the currently active profile.Region
:string
- the currently active region