From aafdd1a5c0d3e03afa2ec9bbe6df858baba19ffa Mon Sep 17 00:00:00 2001 From: kimminchul Date: Wed, 10 Jun 2020 04:52:31 -0700 Subject: [PATCH] [Add] uninstall to rm --- thefuck/rules/rm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 thefuck/rules/rm.py diff --git a/thefuck/rules/rm.py b/thefuck/rules/rm.py new file mode 100644 index 00000000..4e117f1c --- /dev/null +++ b/thefuck/rules/rm.py @@ -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)