Dotfiles
Get Started

Install on Linux

A guide to installing my dotfiles on Linux.

Clone the repository to ~/.dotfiles:

git clone https://github.com/sagoez/.dotfiles.git ~/.dotfiles

Install necessary packages:

sudo apt-get install -y build-essential git curl file stow blueman acpi libusb-1.0-0 libusb-1.0-0-dev shutter

Install homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install zsh:

sudo apt install zsh && chsh -s $(which zsh)

Install oh my zsh:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install Brewfile:

cd ~/.dotfiles/brew && brew bundle

Install fast-syntax-highlighting:

git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git \
  ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting

Install zsh-autosuggestions:

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Install git-open:

git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open

Install ruby:

sudo apt install ruby-full

Install colorls:

sudo gem install colorls

Install i3:

sudo apt install i3 picom polybar feh pavucontrol rofi
/usr/lib/apt/apt-helper download-file https://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2024.03.04_all.deb keyring.deb SHA256:f9bb4340b5ce0ded29b7e014ee9ce788006e9bbfe31e96c09b2118ab91fca734
sudo apt install ./keyring.deb
echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" | sudo tee /etc/apt/sources.list.d/sur5r-i3.list
sudo apt update
rm keyring.deb
sudo apt upgrade

Install jabba:

curl -sL https://github.com/Jabba-Team/jabba/raw/main/install.sh | bash && . ~/.jabba/jabba.sh
jabba install openjdk@1.17-0
jabba alias default openjdk@1.17.0

Setup coursier:

coursier setup
brew uninstall --ignore-dependencies java

Install kitty:

curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
sudo ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten /usr/local/sbin/
cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/
cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/
sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop
sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop

Install cargo:

curl https://sh.rustup.rs -sSf | sh

Create directories:

mkdir ~/Go/ && mkdir ~/Work/ && mkdir ~/Learn/

Install atuin:

curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

Stow folders:

cd ~/.dotfiles && stow nvim && stow zsh && stow k9s && stow kitty && stow i3 && stow atuin