This commit is contained in:
Anton Volnuhin 2023-05-30 09:38:25 +03:00
parent 9aea418516
commit a923c198bf

View File

@ -14,7 +14,12 @@ $Green##########################################################################
## ##
###############################################################################$NC"
{{ if eq .chezmoi.osRelease.id "fedora" -}}
{{ if .chezmoi.os "darwin" -}}
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew upgrade -y
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
sudo dnf update -y
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
@ -24,11 +29,6 @@ $Green##########################################################################
{{ else if eq .chezmoi.osRelease.id "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
{{ end -}}
@ -42,7 +42,10 @@ $Green##########################################################################
###############################################################################$NC"
sleep 3
{{ if eq .chezmoi.osRelease.id "fedora" -}}
{{ if eq .chezmoi.os "darwin" -}}
brew install $BASE_PACKAGES
{{ else 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" -}}
@ -51,9 +54,6 @@ sleep 3
{{ 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 -}}
@ -74,7 +74,6 @@ $Green##########################################################################
bash <(curl -L https://nixos.org/nix/install) --no-daemon
. ~/.nix-profile/etc/profile.d/nix.sh
fi
{{ end -}}
################################################################################
@ -108,6 +107,7 @@ fi
sudo apt update
{{ end -}}
{{ end -}}
echo -e "
@ -120,7 +120,10 @@ $Green##########################################################################
###############################################################################$NC"
sleep 3
{{ if eq .chezmoi.osRelease.id "fedora" -}}
{{ if eq .chezmoi.os "darwin" -}}
brew install fish neovim $ACT_PACKAGES atuin jump -y
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
sudo dnf install neovim fish $ACT_PACKAGES -y
nix-env -iA nixpkgs.atuin nixpkgs.jump
@ -136,9 +139,6 @@ sleep 3
bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh)
fi
{{ else if eq .chezmoi.os "darwin" -}}
brew install fish neovim $ACT_PACKAGES atuin jump -y
{{ end -}}