aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-22 10:55:15 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-22 10:56:12 +1200
commitc3c00008a4fd1620155e24725a8c00e64256a7a7 (patch)
tree765df8aeeb64bda9a06422d3936ca662179e78be
parentRemove gms Mutt binding (diff)
downloaddotfiles-c3c00008a4fd1620155e24725a8c00e64256a7a7.tar.gz
dotfiles-c3c00008a4fd1620155e24725a8c00e64256a7a7.zip
Use XDG base directories for .dotfiles.conf
-rw-r--r--install/conf.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/install/conf.sh b/install/conf.sh
index f50cde73..1634f0cb 100644
--- a/install/conf.sh
+++ b/install/conf.sh
@@ -1,10 +1,11 @@
-# Read extra targets from an optional ~/.dotfiles.conf file
-if [ -e "$HOME"/.dotfiles.conf ] ; then
+# Read extra targets from an optional configuration file
+conf=${XDG_CONFIG_HOME:-"$HOME"/.config}/dotfiles/config
+if [ -e "$conf" ] ; then
while read -r line ; do
case $line in
'#'*|'') ;;
*) set -- "$@" "$line" ;;
esac
- done < "$HOME"/.dotfiles.conf
+ done < $conf
fi
make install "$@"