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)