From 7abac181d3c3cbb91d424fe0c973a5bc83df2aa9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 11 Dec 2024 08:45:08 +0100 Subject: ... --- accounts/gkleen@sif/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'accounts/gkleen@sif/zshrc') diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc index c6052ae3..75a4497c 100644 --- a/accounts/gkleen@sif/zshrc +++ b/accounts/gkleen@sif/zshrc @@ -118,6 +118,12 @@ dir() { nix shell nixos#ghostscript nixos#imagemagick -c convert -verbose -density 400 ${templateArchive} ${modifyPDF:t:r}_%0d.png unpack=false ;; + application/octet-stream) + if [[ $(file --brief --dereferenc ${templateArchive}) =~ Squashfs ]]; then + nix shell nixos#squashfsTools -c unsquashfs -d . ${templateArchive} + unpack=false + fi + ;; *) tar -xvaf ${templateArchive} unpack=false -- cgit v1.2.3