Replies: 1 comment
-
Just looking at the docs on posh-git, I'd say it's doable. Looks like the relevant doc section is Absolutely spitballing, "I have not tested this", but I'd guess: # my profile.ps1
function prompt {
# Your non-prompt logic here
Write-Host "`e]9;9;`"$loc`"$([char]07)" -nonewline
$prompt = & $GitPromptScriptBlock
if ($prompt) { "$prompt " } else { " " }
} Should have powershell emit the CWD before the posh-git prompt. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm enabling shell integration (https://learn.microsoft.com/en-us/windows/terminal/tutorials/shell-integration#powershell-pwshexe) because I wanted the Duplicate Tab feature to open a new tab with the same working directory that I was just in (https://learn.microsoft.com/en-us/windows/terminal/tutorials/shell-integration#open-new-tabs-in-the-same-working-directory).
However, my posh-git prompt is now gone. Is there a way to get them to work together?
Beta Was this translation helpful? Give feedback.
All reactions