#!/bin/sh
echo "Update"
sudo apt-get update
echo "Update completed"
echo "mDNS Setup"
sudo apt-get install avahi-daemon
echo "mDNS installed"
echo "Install VIM"
sudo apt-get install vim
echo "VIM installed"
echo "Install GIT"
sudo apt-get install git -y
echo "GIT installed!"
echo "Install ZSH, plugins and powerlevel9k theme"
sudo apt-get install zsh
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/bhilburn/powerlevel9k.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/themes/powerlevel9k
curl https://gist.githubusercontent.com/dompascal/b85d26c4db4e84d20d3c2077ce834d5f/raw/047a438409546481def836edc2e7f6a34dc43e63/ > .zshrc
source ~/.zshrc
echo "ZSH & plugins installed!"
echo "Install Node"
curl -o node-v9.9.0-linux-armv6l.tar.gz https://nodejs.org/dist/v9.9.0/node-v9.9.0-linux-armv6l.tar.gz
tar -xzf node-v9.9.0-linux-armv6l.tar.gz
sudo cp -r node-v9.9.0-linux-armv6l/* /usr/local/
node -v
echo "Node installed"