Functions/Prompt/Enable-PromptGit.ps1
<# .SYNOPSIS Enable the git prompt extension. .DESCRIPTION Enable the git prompt extension by adding an indicator of the git repo status if the current directory is inside a repo. .INPUTS None. .OUTPUTS None. .EXAMPLE Enable-PromptGit Enable the git prompt extension. .NOTES Author : Claudio Spizzi License : MIT License .LINK https://github.com/claudiospizzi/Spizzi.Profile #> function Enable-PromptGit { [CmdletBinding()] param ( ) Import-Module posh-git -ErrorAction Stop -Force Set-Variable -Scope Global -Name PromptGit -Value $true } |