diff options
Diffstat (limited to 'accounts/gkleen@sif/zshrc')
-rw-r--r-- | accounts/gkleen@sif/zshrc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc index 2d71f5a3..1b7cc06c 100644 --- a/accounts/gkleen@sif/zshrc +++ b/accounts/gkleen@sif/zshrc | |||
@@ -181,8 +181,14 @@ dir() { | |||
181 | templateArchive=${archiveFile} | 181 | templateArchive=${archiveFile} |
182 | fi | 182 | fi |
183 | 183 | ||
184 | case $(file --brief --mime-type ${templateArchive}) in | 184 | case $(file --brief --mime-type --dereference ${templateArchive}) in |
185 | application/zip) unzip ${templateArchive} ;; | 185 | application/zip) unzip ${templateArchive} ;; |
186 | application/vnd.debian.binary-package) | ||
187 | nix shell nixos#binutils --command ar x ${templateArchive} | ||
188 | mkdir control data | ||
189 | tar -C control -xvaf control.* | ||
190 | tar -C data -xvaf data.* | ||
191 | ;; | ||
186 | *) tar -xvaf ${templateArchive} ;; | 192 | *) tar -xvaf ${templateArchive} ;; |
187 | esac | 193 | esac |
188 | ) | 194 | ) |