From dacafd3cd7f0656ebf12f2845b17224a121b693f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jun 2022 09:46:04 +0200 Subject: ... --- accounts/gkleen@sif/default.nix | 1 + accounts/gkleen@sif/zshrc | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'accounts') 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 { i.A. d.h. D.h. + gdw. ''} \ | sort | uniq >$out ''); 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() { templateArchive=${archiveFile} fi - case $(file --brief --mime-type ${templateArchive}) in + case $(file --brief --mime-type --dereference ${templateArchive}) in application/zip) unzip ${templateArchive} ;; + application/vnd.debian.binary-package) + nix shell nixos#binutils --command ar x ${templateArchive} + mkdir control data + tar -C control -xvaf control.* + tar -C data -xvaf data.* + ;; *) tar -xvaf ${templateArchive} ;; esac ) -- cgit v1.2.3