Skip to content

Instantly share code, notes, and snippets.

View jeernest's full-sized avatar

Jan Elias jeernest

View GitHub Profile
@jeernest
jeernest / setup-git.ps1
Last active November 1, 2022 11:25
setup PS integratino with git, the script is intended to be called from $profile
Import-Module posh-git
$GitPromptSettings.DefaultPromptSuffix = '`n$(''>'' * ($nestedPromptLevel + 1)) '
$GitPromptSettings.DefaultPromptPath.ForegroundColor = 'Orange'
# support for large repositories
$GitPromptSettings.RepositoriesInWhichToDisableFileStatus = @("C:\Users\jan.elias\github\repo1")
function Get-GitBranchName() { git rev-parse --abbrev-ref HEAD }
if (Get-Command PAGEANT.EXE -ErrorAction SilentlyContinue) {