Transient Prompt Variables #6766
Replies: 1 comment
-
|
@mateothegreat you're mixing multiple concepts here, so let me help you. On the one hand, there are global properties you can use inside a template. These can be used as is using the Secondly there are cross segment template properties. Every segment that is enabled is added to the list which you can access using Thirdly there are custom and sprig functions you can use inside templates. In your use-case, you can also use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure out the source of truth for the variables exposed and how to access them for the
transient_prompt.templatevalue.https://ohmyposh.dev/docs/configuration/transient#properties says:
..but there is nothing indicating this.
So I dug for issues and discussions around this topic and came up empty handed. Then I did some trivial debugging and am left without a solution.
I can see that with
{{ . }}it outputs gaggle of variables but I cannot use them (e.g.{{ .Time.CurrentDate }}).Initial Test
Dumping
.My Assumptions
Based on the
{{ . }}dump I'm assuming the following to be true:P.S.: My full config is here: https://gist.github.com/mateothegreat/93f6d7de397c53d5575abda3446b41f1
Thanks ya'll!
-Matthew
Beta Was this translation helpful? Give feedback.
All reactions