1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Merge aafdd1a5c0d3e03afa2ec9bbe6df858baba19ffa into c7e7e1d884d3bb241ea6448f72a989434c2a35ec

This commit is contained in:
sdasasqkim 2024-05-11 07:32:52 +08:00 committed by GitHub
commit c229bd0667
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

11
thefuck/rules/rm.py Normal file
View File

@ -0,0 +1,11 @@
import os
from thefuck.utils import for_app
@for_app('uninstall', at_least=1)
def match(command):
return (
command.output.startswith('uninstall: ')and
'command not found' incommand output
)
def get_new_command(command):
return command.script.replace('uninstall','rm',1)