diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2024-12-11 08:45:08 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2024-12-11 08:45:08 +0100 |
commit | 7abac181d3c3cbb91d424fe0c973a5bc83df2aa9 (patch) | |
tree | daf019b373d8b7b52c5cde6a68c713febf9b6506 /accounts/gkleen@sif/zshrc | |
parent | cbd0ed9d451c3c4244de00e7edfdba828c48f6bf (diff) | |
download | nixos-7abac181d3c3cbb91d424fe0c973a5bc83df2aa9.tar nixos-7abac181d3c3cbb91d424fe0c973a5bc83df2aa9.tar.gz nixos-7abac181d3c3cbb91d424fe0c973a5bc83df2aa9.tar.bz2 nixos-7abac181d3c3cbb91d424fe0c973a5bc83df2aa9.tar.xz nixos-7abac181d3c3cbb91d424fe0c973a5bc83df2aa9.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/zshrc')
-rw-r--r-- | accounts/gkleen@sif/zshrc | 6 |
1 files changed, 6 insertions, 0 deletions
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() { | |||
118 | nix shell nixos#ghostscript nixos#imagemagick -c convert -verbose -density 400 ${templateArchive} ${modifyPDF:t:r}_%0d.png | 118 | nix shell nixos#ghostscript nixos#imagemagick -c convert -verbose -density 400 ${templateArchive} ${modifyPDF:t:r}_%0d.png |
119 | unpack=false | 119 | unpack=false |
120 | ;; | 120 | ;; |
121 | application/octet-stream) | ||
122 | if [[ $(file --brief --dereferenc ${templateArchive}) =~ Squashfs ]]; then | ||
123 | nix shell nixos#squashfsTools -c unsquashfs -d . ${templateArchive} | ||
124 | unpack=false | ||
125 | fi | ||
126 | ;; | ||
121 | *) | 127 | *) |
122 | tar -xvaf ${templateArchive} | 128 | tar -xvaf ${templateArchive} |
123 | unpack=false | 129 | unpack=false |