使普通的powershell 都带有github的环境

原创
2013/09/23 21:55
阅读数 244

Here is the recipe for PowerShell noobs like me:

Edit or create Microsoft.PowerShell_profile.ps1 in active user's Documents\WindowsPowerShell folder (create the folder if it does not exist)

Add the following lines:

<!-- lang: shell -->
if(Test-Path ~\AppData\Local\GitHub){    
    . (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
    . (Resolve-Path "$env:github_posh_git\profile.example.ps1")
}
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
4 收藏
0
分享
返回顶部
顶部