This is essentailly taken from the work of 9glenda https://github.com/eza-community/eza/pull/462 Signed-off-by: Christina Sørensen <christina@cafkafk.com>