Add support for arch linux, checks for already installed fish
This commit is contained in:
parent
40d3dc2b73
commit
cf9f51cb6e
@ -5,12 +5,6 @@ USER=$(whoami)
|
|||||||
Green='\033[0;32m' # Green
|
Green='\033[0;32m' # Green
|
||||||
NC='\033[0m' # No Color
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "
|
echo -e "
|
||||||
|
|
||||||
|
|
||||||
@ -20,16 +14,17 @@ $Green##########################################################################
|
|||||||
## ##
|
## ##
|
||||||
###############################################################################$NC"
|
###############################################################################$NC"
|
||||||
|
|
||||||
{{ if eq .chezmoi.os "linux" -}}
|
{{ if eq .chezmoi.osRelease.id "fedora" -}}
|
||||||
{{ 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" -}}
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
|
|
||||||
{{ end -}}
|
{{ else if eq .chezmoi.osRelease "arch" -}}
|
||||||
{{ else if .chezmoi.os "darwin" -}}
|
sudo pacman -Syu --noconfirm
|
||||||
|
|
||||||
|
{{ else if .chezmoi.os "darwin" -}}
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
brew update
|
brew update
|
||||||
brew upgrade -y
|
brew upgrade -y
|
||||||
@ -47,17 +42,18 @@ $Green##########################################################################
|
|||||||
###############################################################################$NC"
|
###############################################################################$NC"
|
||||||
sleep 3
|
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
|
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
|
sudo apt install $BASE_PACKAGES kitty-terminfo -y
|
||||||
|
|
||||||
{{ else if eq .chezmoi.os "darwin" -}}
|
{{ else if eq .chezmoi.osRelease "arch" -}}
|
||||||
brew install $BASE_PACKAGES
|
sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo
|
||||||
|
|
||||||
|
{{ else if eq .chezmoi.os "darwin" -}}
|
||||||
|
brew install $BASE_PACKAGES
|
||||||
|
|
||||||
{{ end -}}
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
@ -122,20 +118,22 @@ $Green##########################################################################
|
|||||||
###############################################################################$NC"
|
###############################################################################$NC"
|
||||||
sleep 3
|
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
|
sudo dnf install neovim fish $ACT_PACKAGES -y
|
||||||
nix-env -iA nixpkgs.atuin nixpkgs.jump
|
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
|
sudo apt install fish $ACT_PACKAGES -y
|
||||||
nix-env -iA nixpkgs.neovim nixpkgs.jump
|
nix-env -iA nixpkgs.neovim nixpkgs.jump
|
||||||
bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh)
|
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
|
brew install fish neovim $ACT_PACKAGES atuin jump -y
|
||||||
|
|
||||||
{{ end -}}
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user