Last active
October 30, 2024 17:43
-
-
Save matheusho/a4197345fb38bf5981dd45e972038bd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 latest" | |
nvm install latest | |
echo "\tNode default" | |
nvm alias default latest | |
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