mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-28 11:31:04 -08:00
766 B
766 B
id | title | sidebar_label |
---|---|---|
terraform | Terraform Context | Terraform |
What
Display the currently active Terraform Workspace name.
:::caution
This requires a terraform binary in your PATH and will only show in directories that contain a .terraform
subdirectory
:::
Sample Configuration
{
"type": "terraform",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#ebcc34",
"properties": {
"template": "{{.WorkspaceName}}"
},
}
- template:
string
- A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the properties below - defaults to{{ .WorkspaceName }}>
Template Properties
.WorkspaceName
:string
- is the current workspace name