Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with posh-git? #27

Open
xeoneux opened this issue May 25, 2021 · 3 comments
Open

Integration with posh-git? #27

xeoneux opened this issue May 25, 2021 · 3 comments

Comments

@xeoneux
Copy link

xeoneux commented May 25, 2021

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?

@gluons
Copy link
Owner

gluons commented Jun 7, 2021

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.

@ratijas
Copy link
Contributor

ratijas commented Jun 26, 2021

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?

@shudiwsh2009
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants