From 3905df13d9c779e87887952ce3719d6d80be0ab7 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Wed, 25 Dec 2019 15:16:55 -0500 Subject: [PATCH] Config file generation --- scripts/install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index a54601a..f810d21 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,5 +1,8 @@ #! /bin/bash +# Load user settings from config file. +. ~/.config/settings.conf + dotdir=~/dotfiles # src dest sudo @@ -89,6 +92,21 @@ function update { fi } +# Set up settings config file +function setup { + if [ -e $dotdir/settings.conf ]; then + echo Settings file already created + else + echo Setting up settings config... + + # Computer shortname + echo What is the computer shortname? + read computer + echo computer=$computer >> $dotdir/settings.conf + fi +} + +setup update dotfiles emacs