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]]
pattern = [
"file format not recognized",
"is a directory",
]
suggest = [
'''
du -h {{command[1:]}} '''
]
[[match_err]]
pattern = [
"is a directory",
]
suggest = [
'''
du -hs {{command[1:]}} '''
]