{"repo":"kzrnm/git-completion-pwsh","free":true,"listed":false,"github":"https://github.com/kzrnm/git-completion-pwsh","clone":"git clone https://github.com/kzrnm/git-completion-pwsh.git","description":"A PowerShell module for tab completion of Git commands.","language":"PowerShell","stars":70,"topics":["completion","git","powershell","pwsh"],"license":"GPL-2.0","category":"productivity","readme_excerpt":"git-completion-pwsh This is a more powerful Git completion module for PowerShell than posh-git. Give it a try and experience next-level Git productivity in PowerShell! 🚀 Get Started PowerShell Gallery. Run the command below. This module works on both Windows PowerShell and the latest cross-platform PowerShell. In your $PROFILE add the following code: ⚠ Notes for upgrading from git-completion v1 to v2 In git-completion v1, importing the module automatically enabled Git completion: Starting with v2, you must explicitly register the argument completer by calling Register-ArgumentCompleter yourself. This change was made to improve performance. Setup Settings Values defined in $GitCompletionSettings before Import-Module are respected. However, note that $GitCompletionSettings is not defined before Import-Module . Usage Features Equivalent Completion to Bash In Bash, completion works for all subcommands, including ls-files . Although posh-git covers many common commands, it doesn't handle all commands. Additionally, posh-git embeds option definitions within its script, making it difficult to keep up with Git updates. In contrast, Bash's completion leverages Git's built-in --git-completion-helper option, allowing it to adapt easily to changes. I have replicated this approach in PowerShell to create a more robust and future-proof module. Option Completion While posh-git supports completion for short options, Bash does not, which can be inconvenient. Since memorizing options is cumbe","default_branch":null,"files":null,"tree":[],"storefront":"/r/kzrnm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kzrnm/git-completion-pwsh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}