https://github.com/dahlbyk/posh-git#step-2-import-posh-git-from-your-powershell-profile
$profile.AllUsersCurrentHost
C:\Program Files\PowerShell\7-preview\Microsoft.PowerShell_profile.ps1
Import-Module 'C:\Users\clu\source\repos\GitHub\Other\posh-git\src\posh-git.psd1'
然后把这个文件复制到powershell的路径
phttps://github.com/chucklu/Scripts/blob/master/Powershell/Microsoft.PowerShell_profile.ps1