Skip to content
New issue

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

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

Already on GitHub? # to your account

how to best write a rule that corrects missing space before subcommand e.g. npminstall, gitclone #579

Closed
jedwards1211 opened this issue Nov 19, 2016 · 3 comments

Comments

@jedwards1211
Copy link

As far as I can tell thefuck is unable to correct gitclone http://... or npminstall some-long-package...

I'm sure I could easily create individual rules that work only for npm or git but I'm curious if anyone has any tips how I could make a generic rule that works for a bunch of programs with subcommands.

@nvbn
Copy link
Owner

nvbn commented Mar 13, 2017

Nice idea, it's very easy to implement rule like that. Look at the implementation and tests.

@nvbn
Copy link
Owner

nvbn commented Mar 15, 2017

Added in 3.15.

@nvbn nvbn closed this as completed Mar 15, 2017
@jedwards1211
Copy link
Author

@nvbn awesome, thank you!

scorphus added a commit to scorphus/thefuck that referenced this issue Jul 29, 2021
riley-martine pushed a commit to riley-martine/thefuck that referenced this issue Dec 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants