about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxlocate7
1 files changed, 7 insertions, 0 deletions
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}