dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c767255ebac6bb9c1e508a781abaa10fc5b2de79
parent 36f9850d31ebe7db38ba8181ebb08ded979df706
Author: Alex Balgavy <EMAIL>
Date:   Sun, 13 Jan 2019 22:33:27 +0100

Ask if user wants all dotfiles installed


Former-commit-id: 2ab49161c5d675e80e0c4c08bc66e0b03cda17cd
Diffstat:
Minstall.sh | 17+++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/install.sh b/install.sh @@ -32,11 +32,20 @@ fi #}}} export CONF_DIR="$HOME/.dotfiles" -bin/conf use $(find . ! -iwholename '*.git*' -type d -d 1) -echo "Dotfiles installed." -bin/conf reload -echo "Run `conf` for more help." +read -n 1 -p "Install all dotfiles? [Y/n]" yn +echo +case $yn in + [Yy]* ) + bin/conf use $(find . ! -iwholename '*.git*' -type d -d 1) + echo "Dotfiles installed." + echo "Run \`conf\` for more help." + ;; + * ) + echo "No dotfiles installed automatically." + echo "Run \`bin/conf\` for more help." + ;; +esac echo "Don't forget to create a ~/.secret_env_variables with:" echo '- $DISCOGS_API_TOKEN'