device-setup/setup.sh

45 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Install dependencies
sudo apt-get update
# Python 3 and dependencies
sudo apt-get install -y python3 python3-pip python3-venv curl wget unzip
# Install most stuff
sudo apt-get install -y zsh bat fzf jq knot-dnsutils tre-command polybar
ln -s /usr/bin/batcat /usr/bin/bat
# Install fx
curl https://fx.wtf/install.sh | sudo sh
# Install Rust
curl https://sh.rustup.rs -sSf | sh
. "$HOME/.cargo/env"
cargo install --locked zellij
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -s https://ohmyposh.dev/install.sh | bash -s
curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
cargo install eza
# Install Alacritty
sudo apt install -y cmake g++ pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev
cargo install alacritty
# Add to menu
sudo cp ./alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install ./Alacritty.desktop
sudo update-desktop-database
# Install dotfiles
git clone git@woodburn.au:nathanwoodburn/dotfiles.git ~/.dotfiles
# Run dotfiles setup
./dotfiles.sh
# Install scripts
git clone git@woodburn.au:nathanwoodburn/scripts.git ~/scripts
# Install fonts
sudo apt install -y fonts-firacode