diff options
author | eater <=@eater.me> | 2019-09-03 11:50:22 +0200 |
---|---|---|
committer | Leah Neukirchen <chneukirchen@gmail.com> | 2019-09-03 11:56:08 +0200 |
commit | ea47dc6714da5c16a2926e65b3b8783b4e1afbb4 (patch) | |
tree | b9285d651077759ad363753eba92feb137e2d35f /xlocate | |
parent | 4c076bcecbcc3a690a07ee5c2f5f560717846f76 (diff) | |
download | xtools-ea47dc6714da5c16a2926e65b3b8783b4e1afbb4.tar.gz xtools-ea47dc6714da5c16a2926e65b3b8783b4e1afbb4.tar.xz xtools-ea47dc6714da5c16a2926e65b3b8783b4e1afbb4.zip |
xlocate: add config file
Diffstat (limited to 'xlocate')
-rwxr-xr-x | xlocate | 7 |
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} |