From 433095fcea1304fa16da2307b2570169cf019b01 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 May 2009 17:59:02 +0200 Subject: Added export-zshrc help script --- include/export-zshrc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 include/export-zshrc diff --git a/include/export-zshrc b/include/export-zshrc new file mode 100755 index 0000000..15b6e0e --- /dev/null +++ b/include/export-zshrc @@ -0,0 +1,23 @@ +#!/usr/bin/env zsh +## Copyright © 2009 by Daniel Friesel +## License: WTFPL +setopt err_exit +result=/tmp/zsh-derf.tar.bz2 +dir=$(mktemp -dt) + +cd $dir +mkdir -p packages/zsh/etc + +cp -a ~/packages/zsh/etc packages/zsh +cp -a ~/packages/zsh/links packages/zsh +mkdir -p packages/zsh/provided +touch packages/zsh/provided/includes +( + export HOME=$PWD + cd packages/zsh + checklinks -p etc=packages/zsh/etc +) +tar cjf $result . +echo $result +cd .. +rm -rf $dir -- cgit v1.2.3