1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-11-20 00:36:01 +00:00
Files
thefuck/thefuck/rules/ls_lah.py
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)