Comments (17)
@brianshumate Wouldn't a third fuck fix that though?
from thefuck.
@mvirkkunen given enough fucks, i think this could totally fuck one's system up, yes.
from thefuck.
This doesn't happen for me on OSX 10.10, that's interesting.
from thefuck.
It's a bit strange, do you wrote something in another terminal between two fucks?
from thefuck.
Haha this made my day. However, I could not replicate this on Linux Mint 17 (Ubuntu 14.04).
from thefuck.
The fsck
would not succeed as a non-root user anyway.
from thefuck.
Can reproduce this on ubuntu 14.10. For me I just need to execute this twice:
> /usr/lib/command-not-found fuck
No command 'fuck' found, did you mean:
Command 'suck' from package 'suck' (universe)
Command 'fsck' from package 'util-linux' (main)
fuck: command not found
The order of suck and fsck is changed on each call. When fsck is shown first, the error appears.
When I remove the subshell from the shell alias this is easily visible:
> fuck
No fuck given
> fuck
fsck
> fuck
suck
from thefuck.
At first, I tested the apt-get
, as shown in the README, and then tried running fuck again, and that was the first time the error happened.
Then I closed the console, and opened another again; and that's the output you're seeing.
btw, I'm running Linux where 3.13.0-49-generic #81-Ubuntu SMP Tue Mar 24 19:29:48 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
from thefuck.
btw. I just added an additional alias for testing. It simply outputs the command fuck would execute:
alias tryfuck='thefuck $(fc -ln -1)'
from thefuck.
I added check if previous command is fuck
. It should fix this issue.
from thefuck.
Confirmed. Fixed for me.
However, I would prefer to make the rule "thefuck/rules/no_command.py" ask before executing the command suggested by /usr/lib/command-not-found. Would make it a lot less dangerous.
from thefuck.
fuck
needs audio speech recognition. This way if it fucks things up and you end up screaming 'fuck!' out loud it will know not to do that again... or not. Fuck it if I know.
from thefuck.
I got to admit, you created a damn good title for this issue..
@zmarouf Deffenitly a +1 on that!
from thefuck.
alias nostop="sudo halt"
from thefuck.
@LaMi- you need to try require_confirmation
settings option, it's doing almost what you want.
from thefuck.
I think @LaMi- pointed the most important issue: proposing once suck before fsck and the other time fsck before suck is not acceptable, since order matters: suck is far better before fsck
from thefuck.
Summing up everything, now confirmation required by default and when previous command is fuck
(or another alias) will be used a command before it.
from thefuck.
Related Issues (20)
- [WARN] Output log isn't specified when "instant mode" turned on
- `<editor> <bash-path> +1 && puthon` suggestion instead of `python` HOT 4
- OpenSSL 1.1 End of Life HOT 4
- subprocess.run does not work inside side_effect
- ModuleNotFoundError: No module named 'imp' (python 3.12.0) HOT 3
- Not fully compatible with python 3.12.0 yet. HOT 1
- [Suggestion] Correct pip remove, delete to uninstall
- How about adding a typo correction rule related to 'nvm'?
- Request for adding Pull Request Template
- I can't run thefuck on powershell HOT 1
- Unhandled `apt` "Packages were downgraded and -y was used without --allow-downgrades" error
- Support for Windows CMD HOT 4
- /.zshrc:1: command not found: thefuck HOT 3
- Shell slow to start with `eval "$(thefuck --alias)"`, workaround is a lazy loading trick HOT 1
- Fuck command does not work on Alacritty (Mint) HOT 1
- When using Windows Terminal to ssh to a remote server with Zsh/OMZ/powerlevel10k, and instant mode in ~/.zshrc, sometimes crash on start up.
- Help for installing on windows HOT 4
- ModuleNotFoundError: No module named 'imp' when running 'fuck' HOT 8
- Error in building development container
- Feature Request: Instant-Interactive Mode + Zoxide with FZF HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thefuck.