mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 13:04:04 -08:00
975 B
975 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",
"template": "{{.WorkspaceName}}"
}
Properties
- fetch_version:
boolean
- fetch the version information fromversions.tf
,main.tf
orterraform.tfstate
- defaults tofalse
Template (info)
:::note default template
{{ .WorkspaceName }}{{ if .Version }} {{ .Version }}{{ end }}
:::
Properties
.WorkspaceName
:string
- is the current workspace name.Version
:string
- terraform version (setfetch_version
totrue
)