1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-28 05:28:38 +00:00
thefuck/thefuck/rules/grep_recursive.py
2015-11-25 02:34:19 -02:00

11 lines
211 B
Python

from thefuck.utils import for_app
@for_app('grep')
def match(command):
return 'is a directory' in command.stderr.lower()
def get_new_command(command):
return u'grep -r {}'.format(command.script[5:])