librefetch.conf(5) -- librefetch configuration file
===================================================

## SYNOPSIS

`/etc/libretools.d/librefetch.conf`, `~/.config/libretools/librefetch.conf`

## DESCRIPTION

Configuration for librefetch is stored in `librefetch.conf`.  The
several places it looks for the file are:

 * `/etc/libretools.d/librefetch.conf`
 * `$XDG_CONFIG_HOME/libretools/librefetch.conf`

The later files take precedence over earlier files, but earlier files
are loaded, so that later files only need to set the values they want
to override.

If `$XDG_CONFIG_HOME` is not set, a default value is set:

 * if `$SUDO_USER` is set: `$(eval echo ~$SUDO_USER)/.config`
 * else: `$HOME/.config`

## OPTIONS

 * `MIRRORS=( ... )`:
   A list of locations that generated source tarballs may be located
   at.  If a URL begins with `libre://`, then `libre://` is replaced
   with the first location listed here.
 * `DOWNLOADER='/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'`:
   The HTTP client to use when downloading pre-built source tarballs
   in download mode.  The format and semantics are similar to
   `DLAGENTS` in `makepkg.conf`(5).  If present, `%u` will be replaced
   with the download URL (correctly quoted), otherwise the download
   URL will be appended to the end of the command.  If present, `%o`
   will be replaced with the local filename that it should be
   downloaded to.

## SEE ALSO

librefetch(8), makepkg.conf(5)

<!--
  Copyright (C) 2013-2014  Luke T. Shumaker <lukeshu@parabola.nu>

  SPDX-License-Identifier: GPL-2.0-or-later

  This file is part of Parabola Libretools.

  Libretools is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 2 of the License, or
  (at your option) any later version.

  Libretools is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
