about summary refs log tree commit diff
path: root/xlocate
diff options
context:
space:
mode:
authoreater <=@eater.me>2019-09-03 11:50:22 +0200
committerLeah Neukirchen <chneukirchen@gmail.com>2019-09-03 11:56:08 +0200
commitea47dc6714da5c16a2926e65b3b8783b4e1afbb4 (patch)
treeb9285d651077759ad363753eba92feb137e2d35f /xlocate
parent4c076bcecbcc3a690a07ee5c2f5f560717846f76 (diff)
downloadxtools-ea47dc6714da5c16a2926e65b3b8783b4e1afbb4.tar.gz
xtools-ea47dc6714da5c16a2926e65b3b8783b4e1afbb4.tar.xz
xtools-ea47dc6714da5c16a2926e65b3b8783b4e1afbb4.zip
xlocate: add config file
Diffstat (limited to 'xlocate')
-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}