Fix ifs
This commit is contained in:
parent
9aea418516
commit
a923c198bf
@ -14,7 +14,12 @@ $Green##########################################################################
|
|||||||
## ##
|
## ##
|
||||||
###############################################################################$NC"
|
###############################################################################$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
|
sudo dnf update -y
|
||||||
|
|
||||||
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
|
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
|
||||||
@ -24,11 +29,6 @@ $Green##########################################################################
|
|||||||
{{ else if eq .chezmoi.osRelease.id "arch" -}}
|
{{ else if eq .chezmoi.osRelease.id "arch" -}}
|
||||||
sudo pacman -Syu --noconfirm
|
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 -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +42,10 @@ $Green##########################################################################
|
|||||||
###############################################################################$NC"
|
###############################################################################$NC"
|
||||||
sleep 3
|
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
|
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" -}}
|
||||||
@ -51,9 +54,6 @@ sleep 3
|
|||||||
{{ else if eq .chezmoi.osRelease "arch" -}}
|
{{ else if eq .chezmoi.osRelease "arch" -}}
|
||||||
sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo
|
sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo
|
||||||
|
|
||||||
{{ else if eq .chezmoi.os "darwin" -}}
|
|
||||||
brew install $BASE_PACKAGES
|
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
@ -74,7 +74,6 @@ $Green##########################################################################
|
|||||||
bash <(curl -L https://nixos.org/nix/install) --no-daemon
|
bash <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||||
. ~/.nix-profile/etc/profile.d/nix.sh
|
. ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -108,6 +107,7 @@ fi
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
echo -e "
|
echo -e "
|
||||||
@ -120,7 +120,10 @@ $Green##########################################################################
|
|||||||
###############################################################################$NC"
|
###############################################################################$NC"
|
||||||
sleep 3
|
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
|
sudo dnf install neovim fish $ACT_PACKAGES -y
|
||||||
nix-env -iA nixpkgs.atuin nixpkgs.jump
|
nix-env -iA nixpkgs.atuin nixpkgs.jump
|
||||||
|
|
||||||
@ -136,9 +139,6 @@ sleep 3
|
|||||||
bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh)
|
bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{{ else if eq .chezmoi.os "darwin" -}}
|
|
||||||
brew install fish neovim $ACT_PACKAGES atuin jump -y
|
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user