summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/default.nix1
-rw-r--r--accounts/gkleen@sif/zshrc8
2 files changed, 8 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 892cd58b..66328970 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -378,6 +378,7 @@ in {
378 i.A. 378 i.A.
379 d.h. 379 d.h.
380 D.h. 380 D.h.
381 gdw.
381 ''} \ 382 ''} \
382 | sort | uniq >$out 383 | sort | uniq >$out
383 ''); 384 '');
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 )