1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-23 21:39:32 +00:00
thefuck/thefuck/rules/man_no_space.py

11 lines
228 B
Python

def match(command):
return (command.script.startswith(u'man')
and u'command not found' in command.stderr.lower())
def get_new_command(command):
return u'man {}'.format(command.script[3:])
priority = 2000