Closed pcostarg closed 2 years ago
Also I would like to add that if I grab a template that works somewhere else like {{ .Path }}, it does not work in transient_prompt, but others like {{ .Shell }} work.
There are two issues here. First of all .now
doesn't work as it should be now
. Secondly, .Path
was replaced with .PWD
in v6.46.0 which arguably should've been breaking change. The following template checks out:
"template": "<[{{ now | date \"02-01 15:04\" }}]{{ .Shell }}> {{ .PWD }}> "
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
The issue started to happen after installing oh my posh on a new machine with latest version: 9.2.0:
Old machine with version works fine with version 6.2.0:
Theme
I'm using a custom theme made by me sometime ago.
The theme is as follows:
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output