Last active
October 29, 2021 17:18
-
-
Save Himura2la/7769e453b0bf7169ef9abd52546c1483 to your computer and use it in GitHub Desktop.
Install posh-git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force | |
@' | |
function g { | |
param ( | |
[Parameter(ValueFromRemainingArguments)] [string[]] $p = 'status' | |
) | |
Write-Host "& git $p" | |
& git $p | |
Import-Module posh-git | |
} | |
'@ >> $PROFILE.CurrentUserAllHosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment