## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
Keith Dahlby
@dahlbyk
Greetings, Gitters
Edward Evans
@eeevans
is there a way to debug the posh-git prompt? Sometimes when I update it stops working i.e. I just get PS>
Keith Dahlby
@dahlbyk
set $GitPromptSettings.Debug =$true in a session, or in your profile, to get a trace of what posh-git is doing
I sometimes see a PS> if I've hit Ctrl-C to kill a program, but hitting Enter should show you a prompt again
you can also check $Error for all PowerShell errors Rob Reynolds @ferventcoder it works... haha Keith Dahlby @dahlbyk @ferventcoder :wave: Rob Reynolds @ferventcoder howdy stranger! haven't seen you much this year. Heads down for both of us I think Keith Dahlby @dahlbyk indeed Keith Dahlby @dahlbyk @eeevans not sure if you will have automatically received notifications on my suggestions, so mentioning you just in case :grinning: Edward Evans @eeevans thanks #Error gave me a hint that poshScope has not been defined..I found these lines at the end of my$profile

# function Prompt() {if(Test-Path Function:\PrePoshGitPrompt){++$global:poshScope; New-Item function:\script:Write-host -value "param([object] $object,$backgroundColor, $foregroundColor, [switch]$nonewline) " -Force | Out-Null;$private:p = PrePoshGitPrompt; if(--$global:poshScope -eq 0) {Remove-Item function:\Write-Host -Force}}PoshGitPrompt} commenting them out fixed it Keith Dahlby @dahlbyk hrm, OK - that code comes from the Chocolatey package install, and honestly it just needs to be rewritten. I believe there's an open PR that adjusts how the posh-git prompt is handled, but I just haven't taken time to review it. :frowning: Keith Hill @rkeithhill OK the Gitter badge on the posh-git repo is live. Rob Reynolds @ferventcoder Yay Keith Hill @rkeithhill And now we have a build badge for our Pester tests. :-) Joey Piccola @joeypiccola I have a win8.1 machine with PS.5 installed that I can't seem to get Posh-Git to work on. When I cd into a git directory the prompt does not change. I've installed and imported the module. Joey Piccola @joeypiccola I figured it out. I had define some vars in my profile. Keith Hill @rkeithhill @joeypiccola That experience should change when posh-git 0.7.0 releases. With the new version, simply importing the posh-git module will change the PowerShell prompt function to display Git status summary info in the prompt. However, posh-git will not change the prompt function if it detects that you have your own, customized prompt function. In that case, look at https://github.com/dahlbyk/posh-git/wiki/Customizing-Your-PowerShell-Prompt for examples of how to integrate posh-git into your own prompt function. Joseph Musser @jnm2 Can I move C:\tools\poshgit to %appdata%\poshgit somehow? Am I able to use the Chocolatey package without creating a C:\tools folder? Rob Reynolds @ferventcoder @jnm2 change $env:ChocolateyToolsLocation to somewhere else
that could be your \$env:AppData folder
and it will just start working. HTH
Joseph Musser
@jnm2
Cool, thanks!
Rob Reynolds
@ferventcoder
in powershell, run ls env: and look to be sure that is the name of the folder
Felix Becker
@felixfbecker
Is it possible to install posh-git on MacOS?
I tried it with Install-Module but my prompt now looks like this:
/Users/felix/git/vscode [master ≡]> /Users/felix/git/vscode [master ≡]
(duplicated)
Felix Becker
@felixfbecker
filed #486
David Gardiner
@flcdrg
I've just started using the VSTS CLI tool (https://docs.microsoft.com/en-us/cli/vsts/overview), that integrates with Git. I'm wondering is this something you'd consider a PR to add to posh-git, or is there a way to make an 'addon' to posh-git to extend it to support this kind of tool?
Keith Dahlby
@dahlbyk
@flcdrg I assume you're referring to tab expansion support for the VSTS commands?
David Gardiner
@flcdrg
Yes, sorry I should have been clearer😀