posh-git v0.7.3 Release Notes

Release Date: 2018-04-19 // about 6 years ago
    • 0๏ธโƒฃ posh-git now exports the variable $GitPromptScriptBlock which contains the code for the default prompt. (#501) (PR #513)

    If you need to execute your own logic in your own prompt function but still want to display the default posh-git prompt, you can execute this scriptblock from your prompt function e.g.:

      # profile.ps1
      function prompt {
        Set-NodeVersion
        &$GitPromptScriptBlock
      }
      Import-Module posh-git
    
    • ๐Ÿ›  Fixed 'Write-Prompt' to be able use Black as foreground color. (#470) (PR #468) Thanks Vladimir Poleh (@vladimir-poleh)
    • Pass "git.exe" instead of "git" to Get-Command. (PR #478) (PR #479) Thanks Mike Sigsworth (@mikesigs)
    • โš  Squash ssh agent warnings if -Quiet. (PR #484) Thanks Refael Ackermann (@refack)
    • ๐Ÿ›  Fixed directory names that contain [brackets] cause GitPrompt to fail. (PR #502) Thanks Duncan Smart (@duncansmart)
    • โž• Added Add-PoshGitToProfile -AllUsers support (PR #504)
    • ๐Ÿ›  Fixed duplicated branch completion for git checkout (#505) (PR #506) (PR #512) Thanks Christoph Bergmeister (@bergmeister)
    • ๐Ÿ›  Fixed PSScriptAnalyzer warnings in the source (PR #509) Thanks Christoph Bergmeister (@bergmeister)
    • ๐Ÿ›  Fixed errors added to $Error collection by Get-GitStatus command (#500) (PR #514)
    • โž• Added custom path rendering in prompt (#469) (PR #520)
    • Clean up wording for work dir local status in help file (PR #516)
    • โž• Added $GitPromptSettings.AdminTitlePrefixText (default: 'Administrator: ') (#537) (PR #538) Thanks Eric Jorgensen (@nebosite)
    • โž• Added $GitPromptSettings.UntrackedFilesMode; accepted values are $null (inherit status.showUntrackedFiles), "all", "no", and "normal" (#556) (PR #557) Thanks David Snedecor (@TheSned)
    • PoshGitVcsPrompt errors now show details if $GitPromptSettings.Debug (PR #560)
    • Exported Expand-GitCommand for use with custom tab expansion (#562) (PR #563)
    • โž• Add code coverage to Coveralls.io (#416) (PR #461) Thanks Jan De Dobbeleer (@JanJoris)