cmder icon indicating copy to clipboard operation
cmder copied to clipboard

Once again about posh-git module.

Open illusive-man opened this issue 9 years ago • 5 comments

Until the last update everything was working perfectly, but after the update cmder's Power Shell (both admin and non-admin consoles) keep telling me to install posh-git, despite the fact it's already installed. I install it again but cmder still says "WARNING: Missing git support, install posh-git with 'Install-Module posh-git' and restart cmder" yet it shows changed files count string. Alas, after restart it shows posh-git no more and displays above mentioned warning text all over again.

I saw couple closed tickets on the same matter, but there was no solution at all.

illusive-man avatar Apr 17 '17 10:04 illusive-man

Self service)). For those experiencing the same issue I was describing above, just type "Update-Module posh-git" and hit Enter. Voila, posh-git is working again! (This method is for already installed but not working module).

P.S. If it doesn't work, try execute "Import-Module YourHomeDir\Documents\WindowsPowerShell\Modules\posh-git\posh-git.psd1" before updating. This will work if you installed posh-git with old PSGet.

illusive-man avatar May 13 '17 10:05 illusive-man

None of the solutions worked for me.

I had to open a powershell admin prompt outside of cmder and use Install-Module posh-git there. Opening a powershell admin prompt inside cmder did not work for me.

Bigpet avatar Feb 14 '18 15:02 Bigpet

You should be able to Install-Module posh-git -Scope CurrentUser without an admin prompt.

dahlbyk avatar Feb 14 '18 19:02 dahlbyk

If you want to use it without posh-git, but still using cmder's profile.ps1, edit the ''%ConEmuDir%\..\profile.ps1''' file and remove/comment the checkGit($pwd.ProviderPath) instruction from line 105; and associated checkGit() and Import-Git() methods for completeness.

aaronmorgan avatar Mar 05 '19 00:03 aaronmorgan

If you want to use it without posh-git, but still using cmder's profile.ps1, edit the ''%ConEmuDir%\..\profile.ps1''' file and remove/comment the checkGit($pwd.ProviderPath) instruction from line 105; and associated checkGit() and Import-Git() methods for completeness.

Link to SO answer: https://stackoverflow.com/a/47188927/1912609

orhanmaden avatar Jan 27 '20 13:01 orhanmaden