mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +00:00
12 lines
233 B
Python
12 lines
233 B
Python
import re
|
|
from thefuck.utils import for_app
|
|
|
|
|
|
@for_app('apt-get')
|
|
def match(command):
|
|
return command.script.startswith('apt-get search')
|
|
|
|
|
|
def get_new_command(command):
|
|
return re.sub(r'^apt-get', 'apt-cache', command.script)
|