From 6416e444df42e45d01a905758cc1876aa63dc44f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 19 Oct 2016 22:52:36 +0200 Subject: [PATCH] Add zsh unxip function --- zsh/.zsh/functions/unzip | 2 ++ zsh/GNUmakefile | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 zsh/.zsh/functions/unzip diff --git a/zsh/.zsh/functions/unzip b/zsh/.zsh/functions/unzip new file mode 100644 index 0000000..a44f23b --- /dev/null +++ b/zsh/.zsh/functions/unzip @@ -0,0 +1,2 @@ +# -*- mode: sh; sh-shell: zsh; -*- +command unzip "$@" -x '__MACOSX*' '*.DS_Store' diff --git a/zsh/GNUmakefile b/zsh/GNUmakefile index 1b688ee..32f2011 100644 --- a/zsh/GNUmakefile +++ b/zsh/GNUmakefile @@ -1,6 +1,9 @@ include ../dotfiles.mk -all: .profile +all: .profile .zshrc .zsh/functions/unzip.zwc .%: %.org $(call tangle,sh) + +.zsh/functions/%.zwc: .zsh/functions/% + zsh -c "zcompile $^"