mirror of
https://github.com/nvbn/thefuck.git
synced 2025-11-20 00:36:01 +00:00
13 lines
262 B
Python
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)
|