Added vim plugin installation question
Shortened the questions for better readability
This commit is contained in:
parent
b7af0f9e53
commit
bb48c563cc
1 changed files with 14 additions and 9 deletions
|
|
@ -31,14 +31,12 @@ if [ "$system_type" = "Darwin" ]; then
|
||||||
|
|
||||||
# install homebrew if it's missing
|
# install homebrew if it's missing
|
||||||
if ! command -v brew >/dev/null 2>&1; then
|
if ! command -v brew >/dev/null 2>&1; then
|
||||||
echo "Do you want to install homebrew? (y/n)"
|
echo "Install homebrew? (y/n)"
|
||||||
read -r install_homebrew
|
read -r install_homebrew
|
||||||
if [ $install_homebrew = "y" ]; then
|
if [ $install_homebrew = "y" ]; then
|
||||||
echo "Installing homebrew"
|
echo "Installing homebrew"
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -47,20 +45,20 @@ fi
|
||||||
if [ "$system_type" = "Linux" ]; then
|
if [ "$system_type" = "Linux" ]; then
|
||||||
install_this_now=""
|
install_this_now=""
|
||||||
|
|
||||||
echo "Do you want to install the most important packages ($raspberrypi_essentials)? (y/n)"
|
echo "Install the most important packages ($raspberrypi_essentials)? (y/n)"
|
||||||
read -r install_raspberrypi_essentials
|
read -r install_raspberrypi_essentials
|
||||||
if [ $install_raspberrypi_essentials = "y" ]; then
|
if [ $install_raspberrypi_essentials = "y" ]; then
|
||||||
install_this_now="$install_this_now $raspberrypi_essentials"
|
install_this_now="$install_this_now $raspberrypi_essentials"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Do you want to install the packages for printing? (y/n)"
|
echo "Install the packages for printing? (y/n)"
|
||||||
read -r install_raspberrypi_printer
|
read -r install_raspberrypi_printer
|
||||||
if [ $install_raspberrypi_printer = "y" ]; then
|
if [ $install_raspberrypi_printer = "y" ]; then
|
||||||
install_this_now="$install_this_now $raspberrypi_printer"
|
install_this_now="$install_this_now $raspberrypi_printer"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Do you want to install the packages for the camera? (y/n)"
|
echo "Install the packages for the camera? (y/n)"
|
||||||
read -r install_raspberrypi_camera
|
read -r install_raspberrypi_camera
|
||||||
if [ $install_raspberrypi_camera = "y" ]; then
|
if [ $install_raspberrypi_camera = "y" ]; then
|
||||||
install_this_now="$install_this_now $raspberrypi_camera"
|
install_this_now="$install_this_now $raspberrypi_camera"
|
||||||
|
|
@ -81,7 +79,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if command -v ufw >/dev/null 2>&1; then
|
if command -v ufw >/dev/null 2>&1; then
|
||||||
echo "Do you want to enable the firewall (ufw with ssh allowed)? (y/n)"
|
echo "Enable the firewall (ufw with ssh allowed)? (y/n)"
|
||||||
read -r enable_ufw
|
read -r enable_ufw
|
||||||
if [ $enable_ufw = "y" ]; then
|
if [ $enable_ufw = "y" ]; then
|
||||||
ufw allow ssh
|
ufw allow ssh
|
||||||
|
|
@ -95,17 +93,24 @@ fi
|
||||||
############# Commands for both ##########################################
|
############# Commands for both ##########################################
|
||||||
|
|
||||||
if command -v /bin/zsh >/dev/null 2>&1; then
|
if command -v /bin/zsh >/dev/null 2>&1; then
|
||||||
echo "Do you want to set zsh as default shell? (y/n)"
|
echo "Set zsh as default shell? (y/n)"
|
||||||
read -r set_default_shell
|
read -r set_default_shell
|
||||||
if [ $set_default_shell = "y" ]; then
|
if [ $set_default_shell = "y" ]; then
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Do you want to install all linters for vim? (y/n)"
|
echo "Install all linters for vim? (y/n)"
|
||||||
read -r install_linters
|
read -r install_linters
|
||||||
if [ $install_linters = "y" ]; then
|
if [ $install_linters = "y" ]; then
|
||||||
install_npm_linters
|
install_npm_linters
|
||||||
install_python_linters
|
install_python_linters
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo "Install the vim plugins now? (y/n)"
|
||||||
|
read -r install_vim_plugins
|
||||||
|
if [ $install_vim_plugins = "y" ]; then
|
||||||
|
vim +'PlugInstall --sync' +qa
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue