1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

[Add] uninstall to rm

This commit is contained in:
kimminchul 2020-06-10 04:52:31 -07:00
parent 6975d30818
commit aafdd1a5c0

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)