Config support

This commit is contained in:
Jack L. Frost 2015-01-28 00:05:27 +03:00
parent 048d64fc46
commit 3d960cd6e4
1 changed files with 5 additions and 1 deletions

6
zpac
View File

@ -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;;