Skip to main content

Pulumi

What​

Display the currently active Pulumi logged-in user, url and stack.

caution

This requires a pulumi binary in your PATH and will only show in directories that contain a Pulumi.yaml file.

Sample Configuration​

− ▢ ×  contoso-prod :: alice@app.pulumi.com/contoso _ ohmyposh.dev − ▢ ×  contoso-prod :: alice@app.pulumi.com/contoso _ ohmyposh.dev

Options​

NameTypeDefaultDescription
fetch_stackbooleanfalsefetch the current stack name
fetch_aboutbooleanfalsefetch the URL and user for the current stask. Requires fetch_stack set to true

Workspace settings​

The segment reads the selected stack from Pulumi's $PULUMI_HOME/workspaces directory. When PULUMI_HOME is unset or empty, it uses ~/.pulumi/workspaces. To keep workspace settings in a project directory, set PULUMI_HOME=$PWD/.pulumi before starting Oh My Posh. In POSIX shells, export it with export PULUMI_HOME="$PWD/.pulumi"; in PowerShell, use $env:PULUMI_HOME = "$PWD/.pulumi". The segment honors that explicit override and does not scan the current directory for .pulumi implicitly.

Template (info)​

default template
{
"template": " {{ .Stack }}{{if .User }} :: {{ .User }}@{{ end }}{{ if .URL }}{{ .URL }}{{ end }}"
}

Properties​

NameTypeDescription
.Stackstringthe current stack name
.Userstringis the current logged in user
.Urlstringthe URL of the state where pulumi stores resources