diff options
Diffstat (limited to 'install/conf.sh')
-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 "$@" |