Adding rule for trying to search using apt-get
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user