Powershell 下的 git 自动补全

按图索骥 1 分钟阅读 更新于 2024-11-10

Powershell(Windows) 下实现 git 自动补全,可以通过 Posh-Git

1
2
3
4
5
6
7
8
9
# 安装
Install-Module -Name posh-git -Repository PSGallery -Scope CurrentUser

# 配置 $PROFILE
Add-Content -Path $PROFILE -Value @'
# posh-git
Import-Module -Name posh-git

'@

如果这篇文章对您有帮助,欢迎打赏支持