Transient Prompt - appears to require enter twice for first command in new shell #6835
Unanswered
JohnPolansky
asked this question in
Troubleshoot
Replies: 1 comment
-
|
@JohnPolansky I can't reproduce this with the config you provided. I'm quite sure something else on your 20250930-1553-08.1694961.mp4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Code of Conduct
What happened?
Describe the bug
First off, just wanted to say LOVE Oh-My-Posh.
I've been setting up my new prompt and I was testing out the transient prompt, but I'm seeing some very weird behavior. when I start a new terminal window or start a new zsh shell within the terminal, the first command when I hit enter doesn't work properly, instead of running the ls command it seems to swap to the transient prompt and I need to hit enter a second time in order to get the command to work. After that things work fine, unless I start a new shell within the same terminal then again the first command doesn't work properly.
Unfortunately I shift shells quite a bit so this is pretty disruptive to me, and was hoping for a fix or perhaps someone can point out what I am doing wrong.
Steps to reproduce
Use the following simple config which reproduces the issue:
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"transient_prompt": {},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"template": ">",
"type": "text",
"style": "plain"
}
]
}
],
"version": 3
}
I've also recorded a video which shows the issues with keystrokes displayed attached below.
Steps:
Expected behavior
I would expect the first prompt to enter just like normal and then display the transient prompt.
Screencast
Theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"transient_prompt": {},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"template": ">",
"type": "text",
"style": "plain"
}
]
}
],
"version": 3
}
What OS are you seeing the problem on?
macOS
Which shell are you using?
zsh
Log output
Beta Was this translation helpful? Give feedback.
All reactions