Suggest ls -A when ls has no output

This commit is contained in:
Joseph Frazier
2016-10-10 14:55:45 -04:00
parent ddd8788353
commit 756044e087
3 changed files with 23 additions and 0 deletions
+10
View File
@@ -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:])