52 lines
1.7 KiB
Bash
52 lines
1.7 KiB
Bash
#!/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 python3-pip cargo go htop fzf bat -y
|
|
sudo dnf install fish neovim -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") (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu"))) -}}
|
|
sudo apt update
|
|
sudo apt install kitty-terminfo -y
|
|
sudo apt install gpg git curl wget ripgrep fd-find unzip python3-pip htop fzf bat snapd -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 -}}
|