nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
84.92k stars 3.43k forks source link

[Suggestion] Correct pip remove, delete to uninstall #1420

Open bong-u opened 10 months ago

bong-u commented 10 months ago

Description: When using the pip command to uninstall a Python package, users often interchangeably use "delete" and "remove" instead of "uninstall," leading to typos. It would be helpful to have aliases for these common alternatives to enhance user experience.

Proposal: I suggest implementing new feature for "delete" and "remove" so that users can use any of these terms interchangeably when uninstalling a package with pip. For example, the following commands should be equivalent:

Example:

# Current behavior
thefuck pip remove thefuck
# Proposed behavior
thefuck pip uninstall thefuck
# or
thefuck pip delete thefuck

Before submitting this issue, I have already submitted a pull request (PR) addressing this feature. However, I value the input and insights of the community. Your thoughts on this proposed enhancement would be highly appreciated. Please share your feedback and let me know if you have any concerns or suggestions.

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.32 using Python 3.11.4 and Bash 5.1.4(1)-release

Your system (Debian 7, ArchLinux, Windows, etc.):

Debian 11

How to reproduce the bug:

n/a

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

n/a

If the bug only appears with a specific application, the output of that application and its version:

n/a

Anything else you think is relevant:

n/a