export EDITOR=vim
C-p (or Up)
C-x C-eThe Fuck – Correct your previous console command
81–90 of 173 posts
Re: The Fuck – Correct your previous console command
#82Not being 100% sure which command this will correct to is dangerous. Also the need for this is largely negated by a shell with autosuggestions.
> Not being 100% sure which command this will correct to is dangerous. And yet the concept of the invocation `fuck --dry-run` is surely unappealing. :-)
Re: The Fuck – Correct your previous console command
#83Re: The Fuck – Correct your previous console command
#84$ fc
Re: The Fuck – Correct your previous console command
#85http://zsh.sourceforge.net/Guide/zshguide06.html#l162
http://zsh.sourceforge.net/Doc/Release/Shell-Grammar.html
http://zsh.sourceforge.net/Doc/Release/Expansion.html
It can actually be integrated into history expansion, used at will, configured with a custom prompt, told to ignore certain words and files that annoy you, etc. But if you try to search for "zsh correction", most posts are related to disabling it entirely.
Re: The Fuck – Correct your previous console command
#86All it does is print the command to run and prompts for [Y/n].
Re: The Fuck – Correct your previous console command
#87Earlier quoted context omitted.
Yes, using the word "fuck" for this just strikes me as a bit immature.
American prudishness. There's nothing immature in swearing in and of itself.
Sounds like you need a review of: https://news.ycombinator.com/newsguidelines.html
Or perhaps just some common decency ? If you want a tool / platform to take off, using the word 'fuck' is not the way to go.
Re: The Fuck – Correct your previous console command
#88permission denied
$ fuck
sudo rm -rf --no-preserve-root / oops
$ _
Re: The Fuck – Correct your previous console command
#89This looks very helpful ... however, could we get a PG version like "The Crap"?
Looks like someone already has, actually: https://github.com/shaungallagher/thefudge
But seriously, I can't some up with a single situation where using "fudge/crap" instead of fuck would matter.
Re: The Fuck – Correct your previous console command
#90Earlier quoted context omitted.
American prudishness. There's nothing immature in swearing in and of itself.
> American prudishness Sounds like you need a review of: https://news.ycombinator.com/newsguidelines.html Or perhaps just some common decency ? If you want a tool / platform to take off, using the word 'fuck' is not the way to go.