rules(size): summarize directories

This commit is contained in:
iff 2025-04-16 00:15:12 +02:00
parent 15790f15e5
commit 5a670924f2

View file

@ -3,9 +3,17 @@ command = "size"
[[match_err]] [[match_err]]
pattern = [ pattern = [
"file format not recognized", "file format not recognized",
"is a directory",
] ]
suggest = [ suggest = [
''' '''
du -h {{command[1:]}} ''' du -h {{command[1:]}} '''
] ]
[[match_err]]
pattern = [
"is a directory",
]
suggest = [
'''
du -hs {{command[1:]}} '''
]