Skip to content
Discussion options

You must be logged in to vote

You're not printing the prompt but interpreting the init script that will override the prompt once again.

You want to hijack the prompt function so it will stick at the bottom. Initialize oh-my-posh outside of your custom prompt function, store the value of that function and invoke the original prompt function at the end of your custom function.

VSCode does the same for its shell integrations, you can have a look at that here.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JanDeDobbeleer
Comment options

@hanzomaster
Comment options

Answer selected by hanzomaster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants