There is no git support, install posh-git using "Install-Module posh-git" and restart cmder

I want to work with Git from PowerShell from cmder.

Mistakes

Cmder displays the following error:

There is no git support, install posh-git using "Install-Module posh-git" and restart cmder

If I run Install-Module posh-git, then cmder displays the following error:

  • Installation Module & lt; & lt; & lt; & lt; gorgeous bastard
    • CategoryInfo: ObjectNotFound: (Install-Module: String) [], CommandNotFoundException
    • FullyQualifiedErrorId: CommandNotFoundException

Things I've done / tried

  • Installed Git for Windows
  • Replaced files in cmder/vendor/git-for-windowsto installed files from "Git for Windows"
  • git v1.2 # 513 # 487
  • -

git , , .

?

+8
2

CommandNotFoundException , Install-Module Powershell 3.0 PSGet. .

, posh-git.psm1 - $env:PSModulePath. PowerShell Import-Module posh-git. .

+4

, . Posh-Git .

cmder (\ vendor\profile.ps1) "checkGit".

function checkGit($Path) {
    #if (Test-Path -Path (Join-Path $Path '.git')) {
    #    $gitLoaded = Import-Git $gitLoaded
    #    Write-VcsStatus
    #    return
    #}

. , . , .

:

, cmder:

\config\user_profile.ps1 ( Chocolatey: c:\tools\cmdermini\config\user_profile.ps1):

function checkGit() {}

+15