#!/usr/bin/env bash BASE_PACKAGES = "kitty-terminfo gpg git curl wget ripgrep fd-find unzip python3-pip htop fzf bat snapd" USER=$(whoami) cd ~ {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "fedora")) -}} sudo dnf install $BASE_PACKAGES -y sudo dnf install fish neovim util-linux-user -y fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher" sudo snap install jump sudo dnf install cargo cargo install atuin echo "USER: $USER" sudo chsh -s /usr/bin/fish $USER {{ end -}} {{ if (and (eq .chezmoi.os "linux") (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu"))) -}} sudo apt update sudo apt install $BASE_PACKAGES -y {{ if eq .chezmoi.osRelease.id "debian" -}} ## Install fish repo VERS={{ .chezmoi.osRelease.versionID }} echo "deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_$VERS/ /" | sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list curl -fsSL "https://download.opensuse.org/repositories/shells:fish:release:3/Debian_$VERS/Release.key" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null {{ end -}} {{ if eq .chezmoi.osRelease.id "ubuntu" -}} sudo apt-add-repository ppa:fish-shell/release-3 {{ end -}} sudo apt update ## Install fish sudo apt install fish -y fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher" ## Install neovim sudo snap install nvim --classic ## install atuin bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh) ## install jump sudo snap install jump {{ end -}}