Back to Oh My Posh

AWS Context

website/docs/segments/cloud/aws.mdx

29.13.01.2 KB
Original Source

What

Display the currently active AWS profile and region.

Sample Configuration

import Config from "@site/src/components/Config.js";

<Config data={{ type: "aws", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#ffffff", background: "#FFA400", template: " \uE7AD {{.Profile}}{{if .Region}}@{{.Region}}{{end}}", }} />

Options

NameTypeDefaultDescription
display_defaultbooleantruedisplay the segment when default user or not

Template (info)

:::note default template

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

:::

Properties

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