aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-19 22:52:36 +0200
committerGravatar Tom Willemse2016-10-19 22:52:36 +0200
commit6416e444df42e45d01a905758cc1876aa63dc44f (patch)
treeb4aa5d36ac9defa5c68ff40f0ce04116f08ae83e
parent4a6a1e36299ecd6c3dd567ec0039783a53b543ee (diff)
downloadnew-dotfiles-6416e444df42e45d01a905758cc1876aa63dc44f.tar.gz
new-dotfiles-6416e444df42e45d01a905758cc1876aa63dc44f.zip
Add zsh unxip function
-rw-r--r--zsh/.zsh/functions/unzip2
-rw-r--r--zsh/GNUmakefile5
2 files changed, 6 insertions, 1 deletions
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 $^"