mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
10 lines
247 B
Python
10 lines
247 B
Python
def match(command, settings):
|
|
return (command.script.startswith(u'man')
|
|
and u'command not found' in command.stderr.lower())
|
|
|
|
|
|
def get_new_command(command, settings):
|
|
return u'man {}'.format(command.script[3:])
|
|
|
|
priority = 2000
|