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

external completer: fixed cookbook example to exchange the first span entry only #1193

Merged
merged 1 commit into from Jan 3, 2024

Conversation

aserowy
Copy link
Contributor

@aserowy aserowy commented Jan 3, 2024

Hi,

@rsteube and i integrated the cookbook example for alias expansion in carapace carapace-sh/carapace-bin#2102. We (mostly not me) found, that nushell expands the alias partially and returns for eg alias gco = git checkout a span with [ "gc", "checkout" ]. Thus, the cookbook example replaces gc with git and checkout.

To replace gc only, we added take 1 to ensure the alias gets replaced with git.

Kind regards
Alexander

… entry only

Signed-off-by: aserowy <serowy@hotmail.com>
@fdncred
Copy link
Collaborator

fdncred commented Jan 3, 2024

thanks

@fdncred fdncred merged commit 7f70a63 into nushell:main Jan 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants