diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-22 10:55:15 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-04-22 10:56:12 +1200 |
commit | c3c00008a4fd1620155e24725a8c00e64256a7a7 (patch) | |
tree | 765df8aeeb64bda9a06422d3936ca662179e78be /install | |
parent | Remove gms Mutt binding (diff) | |
download | dotfiles-c3c00008a4fd1620155e24725a8c00e64256a7a7.tar.gz dotfiles-c3c00008a4fd1620155e24725a8c00e64256a7a7.zip |
Use XDG base directories for .dotfiles.conf
Diffstat (limited to 'install')
-rw-r--r-- | install/conf.sh | 7 |
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 "$@" |