Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderBrevig/9adf9edbc75492094a3747c9eb42c9bc to your computer and use it in GitHub Desktop.
Save AlexanderBrevig/9adf9edbc75492094a3747c9eb42c9bc to your computer and use it in GitHub Desktop.
My slightly modified posh-git
# execute
# Install-Module PowershellGet -Force
# first time install
# PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force
# update with
# PowerShellGet\Update-Module posh-git
Import-Module posh-git
function prompt {
$global:GitPromptSettings.DefaultPromptPath.ForegroundColor = "0x007700"
$global:GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n'
& $GitPromptScriptBlock
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment