Closed jerkstorecaller closed 1 year ago
This is the expected behavior. All APT rules expect a typo in apt
's command (e.g. apt intall
or apt-cache seach
) not a command with a typo that cannot be related to APT (such as aptget
). In this case, no APT rule is matched and the history
rule tries to look for something similar in the shell history and recommends the closest ones.
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release
):The Fuck 3.32 using Python 3.10.6 and Bash 5.1.16(1)-release
Your system (Debian 7, ArchLinux, Windows, etc.):
How to reproduce the bug:
The output of The Fuck with
THEFUCK_DEBUG=true
exported (typically executeexport THEFUCK_DEBUG=true
in your shell before The Fuck):If the bug only appears with a specific application, the output of that application and its version:
Anything else you think is relevant:
When I try to run the latest thefuck 3.32 on the latest Ubuntu LTS (22.04), thefuck isn't able to fix a basic wrong command like "aptget" instead of "apt-get" or "apt". When I enter the command "aptget install nano", it's recommending "wget install nano".
(At first it would recommend "apt-select install nano", a pip package I had installed. I removed apt-select, then it started suggesting wget.)
Other notes: I run thefuck 3.29 on Debian 12, the one from the Debian repos, and it doesn't have this issue. It correctly suggests "apt install nano".