mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-19 01:00:42 +01:00
add man_no_space command
This commit is contained in:
parent
29e70e14a0
commit
793e883073
9
thefuck/rules/man_no_space.py
Normal file
9
thefuck/rules/man_no_space.py
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user