From: Nathan Wagner Date: Wed, 28 Sep 2016 23:43:55 +0000 (+0000) Subject: read in global and local config file in zpm dispatcher X-Git-Tag: v0.1.6~162 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=d1f31d7976de3fe1d914f2f734c7ec123f9471d2 read in global and local config file in zpm dispatcher --- diff --git a/zpm b/zpm index 13f4c8e..a761d8f 100755 --- a/zpm +++ b/zpm @@ -9,6 +9,14 @@ die() { exit 1; } +# parse command line options + +# read in config files + +test -r /etc/zpmrc && . /etc/zpmrc +test -r $HOME/.zpmrc && . $HOME/zpmrc +test -r .zpmrc && . .zpmrc + case $cmd in help) ecmd=$(command -v "zpm-$cmd") && { exec "$ecmd" "$@" || die "$0: unknown command zpm help"; }