From e1018559ccf00066a8dda34bde2083a8fdc89947 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 29 May 2021 20:50:17 +0200 Subject: Change the way software choices work. --- setup.sh | 78 +++++++++++++++------------------------------------------------- 1 file changed, 18 insertions(+), 60 deletions(-) (limited to 'setup.sh') diff --git a/setup.sh b/setup.sh index 98991de..139ab09 100755 --- a/setup.sh +++ b/setup.sh @@ -1,59 +1,17 @@ #!/usr/bin/env bash -qtile_install=false; -termite_install=false; - -st_install=false; - -config_install=false; -neovim_install=false; -latex_install=false; -non_free=false; -nvidia_install=false; - -aerc_install=false; - -read -p "Do you want to install Qtile? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $qtile_install=true; - -read -p "Do you want to install configurations? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $config_install=true; - -read -p "Do you want to install termite? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $termite_install=true; - -read -p "Do you want to install my st fork? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $st_install=true; - -read -p "Do you want to install Neovim? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $neovim_install=true; - -read -p "Do you want to install LaTeX? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $latex_install=true; - -read -p "Do you want to enable non-free repos?" -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $non_free=true; - -if [[ $non_free ]] -then -read -p "Do you want to install proprietary nvidia drivers? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $nvidia_install=true; -fi - -read -p "Do you want to install Aerc? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $aerc_install=true; +read -p "Do you want to install Qtile? [y/n]: " qtile_install +read -p "Do you want to install configurations? [y/n]: " config_install +read -p "Do you want to install termite? [y/n]: " termite_install +read -p "Do you want to install my st fork? [y/n]: " st_install +read -p "Do you want to install Neovim? [y/n]: " neovim_install +read -p "Do you want to install LaTeX? [y/n]: " latex_install +read -p "Do you want to enable non-free repos? [y/n]:" non_free +[[ $non_free =~ ^[Yy]$ ]] && read -p "Do you want to install proprietary nvidia drivers? [y/n]: " nvidia_install +read -p "Do you want to install Aerc? [y/n]: " aerc_install # Adding non-free repos if necessary. -if [[ $non_free ]] +if [[ $non_free =~ ^[Yy]$ ]] then cat > /tmp/sources.list <