diff --git a/run_onchange_before_install_main_deps.sh.tmpl b/run_onchange_before_install_main_deps.sh.tmpl index 0515c03..defe3b0 100644 --- a/run_onchange_before_install_main_deps.sh.tmpl +++ b/run_onchange_before_install_main_deps.sh.tmpl @@ -5,12 +5,6 @@ USER=$(whoami) Green='\033[0;32m' # Green NC='\033[0m' # No Color - - - - - - echo -e " @@ -20,16 +14,17 @@ $Green########################################################################## ## ## ###############################################################################$NC" -{{ if eq .chezmoi.os "linux" -}} - {{ if eq .chezmoi.osRelease.id "fedora" -}} +{{ if eq .chezmoi.osRelease.id "fedora" -}} sudo dnf update -y - {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} +{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} sudo apt update sudo apt upgrade -y - {{ end -}} - {{ else if .chezmoi.os "darwin" -}} +{{ else if eq .chezmoi.osRelease "arch" -}} + sudo pacman -Syu --noconfirm + +{{ else if .chezmoi.os "darwin" -}} bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew update brew upgrade -y @@ -47,17 +42,18 @@ $Green########################################################################## ###############################################################################$NC" sleep 3 -{{ if eq .chezmoi.os "linux" -}} - {{ if eq .chezmoi.osRelease.id "fedora" -}} +{{ if eq .chezmoi.osRelease.id "fedora" -}} sudo dnf install $BASE_PACKAGES kitty-terminfo util-linux-user -y - {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} +{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} sudo apt install $BASE_PACKAGES kitty-terminfo -y - {{ else if eq .chezmoi.os "darwin" -}} - brew install $BASE_PACKAGES +{{ else if eq .chezmoi.osRelease "arch" -}} + sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo + +{{ else if eq .chezmoi.os "darwin" -}} + brew install $BASE_PACKAGES - {{ end -}} {{ end -}} @@ -122,20 +118,22 @@ $Green########################################################################## ###############################################################################$NC" sleep 3 -{{ if eq .chezmoi.os "linux" -}} - {{ if eq .chezmoi.osRelease.id "fedora" -}} +{{ if eq .chezmoi.osRelease.id "fedora" -}} sudo dnf install neovim fish $ACT_PACKAGES -y nix-env -iA nixpkgs.atuin nixpkgs.jump - {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} +{{ else if eq .chezmoi.osRelease "arch" -}} + sudo pacman -Sy --noconfirm neovim fish atuin $ACT_PACKAGES + nix-env -iA nixpkgs.jump + +{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} sudo apt install fish $ACT_PACKAGES -y nix-env -iA nixpkgs.neovim nixpkgs.jump bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh) - {{ else if eq .chezmoi.os "darwin" -}} +{{ else if eq .chezmoi.os "darwin" -}} brew install fish neovim $ACT_PACKAGES atuin jump -y - {{ end -}} {{ end -}}