Files
thefuck/thefuck/rules/ls_lah.py
T
2015-04-25 03:42:36 +02:00

12 lines
266 B
Python

enabled_by_default = False
def match(command, settings):
return 'ls' in command.script and not ('ls -' in command.script)
def get_new_command(command, settings):
command = command.script.split(' ')
command[0] = 'ls -lah'
return ' '.join(command)