Config support
This commit is contained in:
6
zpac
6
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;;
|
||||
|
Reference in New Issue
Block a user