Files
thefuck/thefuck/rules/grep_recursive.py
T
2017-08-31 17:58:56 +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.output.lower()
def get_new_command(command):
return u'grep -r {}'.format(command.script[5:])