#!/usr/bin/env bash cd ~ {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "fedora")) -}} sudo dnf install kitty-terminfo sudo dnf install gpg git curl wget ripgrep fd-find unzip util-linux util-linux-user python3-pip cargo go htop fzf bat -y sudo dnf install fish neovim kitty-fish-integration -y fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher" GOPATH="$HOME/.go" go install github.com/gsamokovarov/jump@latest cargo install atuin {{ end -}} {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "debian")) -}} sudo apt update sudo apt install kitty-terminfo -y sudo apt install gpg git curl wget ripgrep fd-find unzip python3-pip cargo go htop fzf bat -y ## 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 sudo apt update ## Install fish sudo apt install fish -y ## Install neovim sudo curl -L https://github.com/neovim/neovim/releases/latest/download/nvim.appimage --output /usr/local/bin/nvim.appimage sudo chmod a+x /usr/local/bin/nvim.appimage sudo ln -s /usr/local/bin/nvim.appimage /usr/local/bin/nvim CUSTOM_NVIM_PATH=/usr/local/bin/nvim.appimage # Set the above with the correct path, then run the rest of the commands: set -u sudo update-alternatives --install /usr/bin/ex ex "${CUSTOM_NVIM_PATH}" 110 sudo update-alternatives --install /usr/bin/vi vi "${CUSTOM_NVIM_PATH}" 110 sudo update-alternatives --install /usr/bin/view view "${CUSTOM_NVIM_PATH}" 110 sudo update-alternatives --install /usr/bin/vim vim "${CUSTOM_NVIM_PATH}" 110 sudo update-alternatives --install /usr/bin/vimdiff vimdiff "${CUSTOM_NVIM_PATH}" 110 ## install atuin bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh) ## install jump GOPATH="$HOME/.go" go install github.com/gsamokovarov/jump@latest {{ end -}}