powershell-git-aliases icon indicating copy to clipboard operation
powershell-git-aliases copied to clipboard

Integration with posh-git?

Open xeoneux opened this issue 4 years ago • 3 comments

After installing the posh-git module, the previous tab-completion provided by posh-git does not work with git-aliases. Is there any way to integrate it?

xeoneux avatar May 25 '21 20:05 xeoneux

This module doesn't work with posh-git.
Because this module doesn't use Set-Alias (That posh-git mention).
This module use PowerShell function.

Set-Alias doesn't work with command with arguments/parameters.
It works with just simple command like git.

gluons avatar Jun 07 '21 04:06 gluons

Because this module doesn't use Set-Alias (That posh-git mention). This module use PowerShell function.

Set-Alias doesn't work with command with arguments/parameters.

That's perfectly understandable. Now every shell is as smart at parsing functions/aliases as zsh. But still it kinda drops the quality-of-life level back to square one. There should be some workaround, such as set auto-completion handler for all those functions in batch, right?

ratijas avatar Jun 26 '21 13:06 ratijas

Is this what u are looking for? Seems that it has been solved by PR. Tab completion works perfectly in both git check<tab> mas<tab> and gco mas<tab>. Be aware that posh-git should be imported after git-aliases or any self-defined git alias/function, which is mentioned in this issue and solved in PR.

shudiwsh2009 avatar Feb 16 '22 09:02 shudiwsh2009