Adding rule for trying to search using apt-get

This commit is contained in:
Bastian Gebhardt
2015-08-20 00:23:33 +02:00
parent 5ab2cf646e
commit 2b3e8dc62a
3 changed files with 30 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import re
def match(command, settings):
return command.script.startswith('apt-get search')
def get_new_command(command, settings):
return re.sub(r'^apt-get', 'apt-cache', command.script)