Skip to content

Instantly share code, notes, and snippets.

@DouglasdeMoura
Last active February 26, 2021 12:00
Show Gist options
  • Save DouglasdeMoura/edbbb7e2f28a858e4dac133d3999fd23 to your computer and use it in GitHub Desktop.
Save DouglasdeMoura/edbbb7e2f28a858e4dac133d3999fd23 to your computer and use it in GitHub Desktop.
Script to install my development tools on fresh Ubuntu installations
#!/bin/sh
# Add fish PPA
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
# Install minimal tools
sudo apt install fish git dirmngr gpg vim -y
# Set fish as default shell
chsh -s /usr/bin/fish
# Install ASDF
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
touch ~/.config/fish/config.fish
echo "source ~/.asdf/asdf.fish" >> ~/.config/fish/config.fish
mkdir -p ~/.config/fish/completions; and cp ~/.asdf/completions/asdf.fish ~/.config/fish/completions
# Install Node
source $HOME/.asdf/asdf.sh
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
bash -c '${ASDF_DATA_DIR:=$HOME/.asdf}/plugins/nodejs/bin/import-release-team-keyring'
asdf install nodejs latest
# Install Yarn
asdf plugin-add yarn
asdf install yarn latest
# Install Spacevim
curl -sLf https://spacevim.org/install.sh | bash
# Set Vim as default git editor
git config --global core.editor "vim"
# Install Starship
curl -fsSL https://starship.rs/install.sh | bash
echo "starship init fish | source" >> ~/.config/fish/config.fish
# Requirements
echo ""
echo "You must:"
echo ""
echo " - install a Nerd Font and set it to work with your terminal. Pick yours here: https://www.nerdfonts.com/font-downloads"
# Suggestions
echo ""
echo "You migh want to:"
echo ""
echo " - download VS Code: https://code.visualstudio.com/"
echo " - install Microsoft Terminal (on Windows systems): https://www.microsoft.com/pt-br/p/windows-terminal/9n0dx20hk701"
echo " - install Dracula theme on all your apps: https://draculatheme.com/"
echo ""
echo "Re-open your terminal in order to use Fish Shell with your Starship prompt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment