Cmder: Once again about posh-git module.

Created on 17 Apr 2017  路  5Comments  路  Source: cmderdev/cmder

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.

Most helpful comment

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.

All 5 comments

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.

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.

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

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zsedcbm picture zsedcbm  路  3Comments

GlassGruber picture GlassGruber  路  3Comments

tfarina picture tfarina  路  3Comments

isnullxbh picture isnullxbh  路  3Comments

brunowego picture brunowego  路  3Comments