Config support
This commit is contained in:
parent
048d64fc46
commit
3d960cd6e4
6
zpac
6
zpac
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
_self="${0##*/}"
|
_self="${0##*/}"
|
||||||
|
|
||||||
cfg_workdir="/tmp/$USER/zpac"
|
cfg_workdir="$PWD"
|
||||||
cfg_aur_url='https://aur.archlinux.org'
|
cfg_aur_url='https://aur.archlinux.org'
|
||||||
cfg_aur_api="${cfg_aur_url}/rpc.php"
|
cfg_aur_api="${cfg_aur_url}/rpc.php"
|
||||||
|
|
||||||
|
@ -111,6 +111,10 @@ abs.get() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
if [[ -f "$HOME/.config/zpac.rc.sh" ]]; then
|
||||||
|
source "$HOME/.config/zpac.rc.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
while (( $# )); do
|
while (( $# )); do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--help|-h) usage; return 0;;
|
--help|-h) usage; return 0;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user