mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +00:00
Merge aafdd1a5c0d3e03afa2ec9bbe6df858baba19ffa into c7e7e1d884d3bb241ea6448f72a989434c2a35ec
This commit is contained in:
commit
c229bd0667
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