aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-25 14:29:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-25 14:30:11 +1200
commit49baf42cff246ae9bc96baab66b9233003eb9bb0 (patch)
tree5e750c97b58954497066f087bd4a35e6dfe85ed8 /install
parentRemove deprecated keyserver options (diff)
downloaddotfiles-49baf42cff246ae9bc96baab66b9233003eb9bb0.tar.gz
dotfiles-49baf42cff246ae9bc96baab66b9233003eb9bb0.zip
Add install-conf target
Allows you to have a ~/.dotfiles.conf specifying targets to run in addition to `install`, e.g. `install-tmux` for applicable machines. Won't document this one just yet.
Diffstat (limited to 'install')
-rw-r--r--install/install-conf.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/install/install-conf.sh b/install/install-conf.sh
new file mode 100644
index 00000000..f50cde73
--- /dev/null
+++ b/install/install-conf.sh
@@ -0,0 +1,10 @@
+# Read extra targets from an optional ~/.dotfiles.conf file
+if [ -e "$HOME"/.dotfiles.conf ] ; then
+ while read -r line ; do
+ case $line in
+ '#'*|'') ;;
+ *) set -- "$@" "$line" ;;
+ esac
+ done < "$HOME"/.dotfiles.conf
+fi
+make install "$@"