From 793e8830739f719351bb6da808916eac86014afe Mon Sep 17 00:00:00 2001 From: SanketDG Date: Fri, 8 May 2015 00:15:32 +0530 Subject: [PATCH] add man_no_space command --- thefuck/rules/man_no_space.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 thefuck/rules/man_no_space.py 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