burrow checks for a /etc/burrow/config fallback file

This commit is contained in:
James Tomasino 2019-01-27 23:18:13 -05:00
parent 7782fd066d
commit 045e7b8f72
3 changed files with 9 additions and 6 deletions

View File

@ -49,9 +49,10 @@ _`man burrow` or `burrow -h` for more information._
The following locations are available for configuration:
1) `$HOME/.config/burrow/config`
2) `$HOME/.config/burrow`
3) `$HOME/.burrow`
1) `/etc/burrow/config`
2) `$HOME/.config/burrow/config`
3) `$HOME/.config/burrow`
4) `$HOME/.burrow`
These files are processed in the order listed. Variables defined in multiple
locations will use the last assigned value.

4
burrow
View File

@ -1,8 +1,8 @@
#!/bin/sh
version="v1.7.5"
version="v1.7.6"
configfiles="$HOME/.config/burrow/config $HOME/.config/burrow $HOME/.burrow /etc/burrow/config"
configfiles="/etc/burrow/config $HOME/.config/burrow/config $HOME/.config/burrow $HOME/.burrow"
# vars from config
config_dir_gopher="$HOME/gopher/"

View File

@ -1,4 +1,4 @@
.TH BURROW 1 "27 Jan 2019" "version 1.7.5"
.TH BURROW 1 "27 Jan 2019" "version 1.7.6"
.SH NAME
burrow \- a helper for building and managing a gopher hole
.SH SYNOPSIS
@ -50,6 +50,8 @@ Show the help.
.I ~/.config/burrow
,
.I ~/.burrow
,
.I /etc/burrow/config
: configuration settings for burrow. If none of these are available, the default
configuration is loaded.
.SH BUGS