Last active
January 4, 2022 16:03
-
-
Save vinicius98s/4ca66e069af7dd579946b63918184f33 to your computer and use it in GitHub Desktop.
Ubuntu config file
This file contains 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
sudo apt-get update | |
# Installing curl | |
sudo apt install curl -y | |
# Installing general programs | |
# Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update ; sudo apt-get install google-chrome-stable -y | |
# Spotify | |
sudo snap install spotify | |
# Install Fira Code | |
fonts_dir="${HOME}/.local/share/fonts" | |
if [ ! -d "${fonts_dir}" ]; then | |
echo "mkdir -p $fonts_dir" | |
mkdir -p "${fonts_dir}" | |
else | |
echo "Found fonts dir $fonts_dir" | |
fi | |
for type in Bold Light Medium Regular Retina; do | |
file_path="${HOME}/.local/share/fonts/FiraCode-${type}.ttf" | |
file_url="https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true" | |
if [ ! -e "${file_path}" ]; then | |
echo "wget -O $file_path $file_url" | |
wget -O "${file_path}" "${file_url}" | |
else | |
echo "Found existing file $file_path" | |
fi; | |
done | |
echo "fc-cache -f" | |
fc-cache -f | |
# Neovim | |
sudo apt install neovim | |
sudo apt install python-neovim | |
sudo apt install python3-neovim | |
# RCM | |
sudo apt install rcm | |
# FD | |
sudo apt install fd-find | |
# Bat | |
sudo apt install bat | |
# VSCode | |
sudo snap install code --classic | |
# GIT | |
sudo apt-get install git-all -y | |
# Dotfiles | |
git clone https://github.com/vinicius98s/dotfiles.git ~/.dotfiles | |
cd ~/.dotfiles | |
sh install.sh | |
# Alacritty | |
sudo add-apt-repository ppa:mmstick76/alacritty | |
sudo apt install alacritty | |
# ASDF | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1 | |
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git | |
asdf install nodejs latest | |
# Yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install --no-install-recommends yarn | |
# Docker | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
# Redis CLI | |
sudo apt install redis-server | |
# Xclip | |
sudo apt-get install xclip | |
# ZSH | |
sudo apt install zsh -y | |
# zinit | |
sh -c "$(curl -fsSL https://git.io/zinit-install)" | |
# zsh config | |
curl https://gist.githubusercontent.com/vinicius98s/125a1bb3aad0239da1b8e3e3a9cfea3f/raw/e898b656ad502aeb63efe3cfc89f37fc22625650/.zshrc -o .zshrc | |
mv .zshrc ~/.zshrc | |
# p10k | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
curl https://gist.githubusercontent.com/vinicius98s/1331e4b629035931b3aa43338b6ff41e/raw/b795973bd08a22987a88304de36fa496333b9341/.p10k.zsh -o .p10k.zsh | |
mv .p10k.zsh ~/.p10k.zsh | |
# OH MY ZSH | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# Zsh default shell (only works after restart) | |
sudo chsh -s $(which zsh) $(whoami) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment