Skip to content

Instantly share code, notes, and snippets.

@matheusho
Last active January 15, 2019 11:46
Show Gist options
  • Save matheusho/a4197345fb38bf5981dd45e972038bd6 to your computer and use it in GitHub Desktop.
Save matheusho/a4197345fb38bf5981dd45e972038bd6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# How to use:
# curl -o- gist-url | bash
function reset_shell() {
echo "Reset $SHELL";
exec "$SHELL";
}
function apt_install {
echo "yes" | sudo apt install $1;
}
# git
echo "Git"
echo "\tInstall"
echo apt_install "git"
echo "\tFinished"
# vscode
echo "Visual Studio Code"
echo "\tUpdate package"
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
apt_install "apt-transport-https"
sudo apt update
echo "\tInstall"
apt_install "code"
echo "\tFinished"
reset_shell()
# node
echo "NVM"
echo "\tInstall"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
reset_shell()
echo "Install node v10.x.x"
nvm install v10
echo "\tNode default"
nvm alias default v10
echo "Chromium browser"
apt_install "chromium-browser"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment