oh-my-posh/website/docs/segments/aws.md
2022-05-13 08:19:35 +02:00

794 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",
  "template": " \uE7AD {{.Profile}}{{if .Region}}@{{.Region}}{{end}}"
}

Properties

  • display_default: boolean - display the segment or not when the user profile matches default - defaults to true

Template (info)

:::note default template

{{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }}

:::

Properties

  • .Profile: string - the currently active profile
  • .Region: string - the currently active region