Files
thefuck/thefuck/rules/ls_lah.py
T
2015-10-29 00:13:59 +08:00

13 lines
262 B
Python

from thefuck.utils import for_app
@for_app('ls')
def match(command):
return command.script_parts and 'ls -' not in command.script
def get_new_command(command):
command = command.script_parts[:]
command[0] = 'ls -lah'
return ' '.join(command)