diff --git a/thefuck/rules/man_no_space.py b/thefuck/rules/man_no_space.py new file mode 100644 index 0000000..1751352 --- /dev/null +++ b/thefuck/rules/man_no_space.py @@ -0,0 +1,9 @@ +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