1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-15 07:10:52 +01:00
thefuck/thefuck/rules/man_no_space.py

10 lines
227 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