1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-11-20 16:56:04 +00:00
Files
thefuck/thefuck/rules/grep_recursive.py
2015-05-20 02:50:08 +03:00

8 lines
229 B
Python

def match(command, settings):
return (command.script.startswith('grep')
and 'is a directory' in command.stderr.lower())
def get_new_command(command, settings):
return 'grep -r {}'.format(command.script[5:])