Suggest ls -A when ls has no output
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from thefuck.utils import for_app
|
||||
|
||||
|
||||
@for_app('ls')
|
||||
def match(command):
|
||||
return command.stdout.strip() == ''
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return ' '.join(['ls', '-A'] + command.script_parts[1:])
|
||||
Reference in New Issue
Block a user