From ea47dc6714da5c16a2926e65b3b8783b4e1afbb4 Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Tue, 3 Sep 2019 11:50:22 +0200 Subject: xlocate: add config file --- xlocate | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlocate') diff --git a/xlocate b/xlocate index 2282538..fdd79d5 100755 --- a/xlocate +++ b/xlocate @@ -2,6 +2,13 @@ # xlocate [-g | -S | PATTERN] - locate files in all XBPS packages : ${XDG_CACHE_HOME:=~/.cache} +: ${XDG_CONFIG_HOME:=~/.config} +: ${XLOCATE_CONF:="${XDG_CONFIG_HOME}/xlocate.conf"} + +if [ -f "${XLOCATE_CONF}" ]; then + . "${XLOCATE_CONF}"; +fi + : ${XLOCATE_GIT:=$XDG_CACHE_HOME/xlocate.git} : ${XLOCATE_REPO:=https://alpha.de.repo.voidlinux.org/xlocate/xlocate.git} -- cgit 1.4.1