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

Suggestion: If "fuck" executes "thefuck", go back further in history #103

Closed
blixt opened this issue Apr 22, 2015 · 8 comments
Closed

Suggestion: If "fuck" executes "thefuck", go back further in history #103

blixt opened this issue Apr 22, 2015 · 8 comments

Comments

@blixt
Copy link

blixt commented Apr 22, 2015

See the screenshot below for an example. It would be neat if instead of not giving a fuck, the command would be nice and execute the misspelled command that the user attempted to correct (but failed a second time).
screen shot 2015-04-22 at 6 36 03 pm

@azze-r
Copy link

azze-r commented May 4, 2015

Did you execute the good command one time before?
If not ,Try this :
git clone myrepo
// it will save the command
and then you can try :

git clne myrepo

fuck

I believe you have to execute the good command at least onc, This will let thefuck to save the good command and can be used again. I will try it more late with my computer and I'll say you if it runs.

@nvbn
Copy link
Owner

nvbn commented May 4, 2015

Try 1.35+, probably it works like you want.

@azze-r
Copy link

azze-r commented May 4, 2015

maybe fixed in 1.35+

[boblinux@bobz ~]$ git clne https://github.com/boblinux/Algo_generique_cpp
git : 'clne' n'est pas une commande git. Voir 'git --help'.

Vouliez-vous dire cela ?
clone
[boblinux@bobz ~]$ fuck
git clone https://github.com/boblinux/Algo_generique_cpp
Clonage dans 'Algo_generique_cpp'...
remote: Counting objects: 283, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 283 (delta 13), reused 0 (delta 0), pack-reused 250
Réception d'objets: 100% (283/283), 202.28 KiB | 351.00 KiB/s, fait.
Résolution des deltas: 100% (157/157), fait.
Vérification de la connectivité... fait.

@blixt
Copy link
Author

blixt commented May 4, 2015

It always works if writing fuck right after a misspelled command. This issue is about misspelling fuck itself and then calling it again a second time (correctly spelled). Today it just says echo No fuck given but ideally it would go back and correct the original command.

@SanketDG
Copy link
Contributor

SanketDG commented May 4, 2015

@blixt What's that shell?

@blixt
Copy link
Author

blixt commented May 4, 2015

zsh with oh-my-zsh

On Monday, May 4, 2015, Sanket Dasgupta notifications@github.com wrote:

@blixt https://github.com/blixt What's that shell?


Reply to this email directly or view it on GitHub
#103 (comment).

@jhoviatt
Copy link

jhoviatt commented May 4, 2015

possibly similar to #74

@scorphus
Copy link
Collaborator

scorphus commented Jan 1, 2019

Fixed in 9ba36c9

@scorphus scorphus closed this as completed Jan 1, 2019
riley-martine pushed a commit to riley-martine/thefuck that referenced this issue Dec 7, 2023
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

No branches or pull requests

6 participants