From 3d960cd6e4190c2e53adfef6ea48cce77f3cb435 Mon Sep 17 00:00:00 2001 From: fbt Date: Wed, 28 Jan 2015 00:05:27 +0300 Subject: [PATCH] Config support --- zpac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zpac b/zpac index 028d7be..356eb05 100755 --- a/zpac +++ b/zpac @@ -5,7 +5,7 @@ _self="${0##*/}" -cfg_workdir="/tmp/$USER/zpac" +cfg_workdir="$PWD" cfg_aur_url='https://aur.archlinux.org' cfg_aur_api="${cfg_aur_url}/rpc.php" @@ -111,6 +111,10 @@ abs.get() { } main() { + if [[ -f "$HOME/.config/zpac.rc.sh" ]]; then + source "$HOME/.config/zpac.rc.sh" + fi + while (( $# )); do case "$1" in --help|-h) usage; return 0;;