This commit is contained in:
sdasasqkim 2023-10-18 06:12:13 -03:00 committed by GitHub
commit 95d1925edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)