Comments (4)
Verified here as well, it won't fuck us up - but! I don't think this is what it's meant to be...
What I did here:
I can't do mkdir
at /
without sudo
which I did, and I accidentally ran fuk
instead of fuck
. Dissatisfied, I ran fuck
.
What actually happened
fuck
went to get the last command, which resulted in gettingfuk
fuck
thought I meantthefuck
(or aliasfuck
), and ran it for me- But for some reason that
thefuck
(which have just been run bythefuck
) didn't get the 2nd latest command (which ismkdir a
ran at the root) and didn't give any fuck.
What I expected
fuck
goes to get the last command, which results in gettingfuk
fuck
thinks I meantthefuck
(or aliasfuck
), and runs it for me- This
fuck
(which been run bythefuck
) gets its last command,mkdir a
. fuck
thinks I skippedsudo
, and it runs my command withsudo
, resulting in runningsudo mkdir a
.
Can this be implemented? - like, whenever thefuck
tries to correct itself, it'll get the 2nd latest command.
from thefuck.
Probably fixed in 1.23+
from thefuck.
I verified this and it has been fixed in the newest version.
from thefuck.
Fixed in 9ba36c9
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 10
- 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.