modules/aerc: colorize .xml.gz files

This commit is contained in:
Dmitriy Pleshevskiy 2024-06-27 22:22:05 +03:00
parent 807b75b227
commit 9a6af2dcc5
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -88,6 +88,9 @@ in
"message/*" = "cat | colorize";
"application/pgp-keys" = "gpg";
".filename,~\\.gpg" = "gpg --decrypt";
".filename,~\\.xml\\.gz" = "${pkgs.gzip}/bin/gunzip |"
+ "${pkgs.xmlformat}/bin/xmlformat |"
+ "${pkgs.bat}/bin/bat -fpp --file-name='$AERC_FILENAME' --language xml";
};
openers = { };