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:
parent
6975d30818
commit
aafdd1a5c0
11
thefuck/rules/rm.py
Normal file
11
thefuck/rules/rm.py
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user