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,7 +14,6 @@ $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
|
||||||
|
|
||||||
@ -28,7 +21,9 @@ $Green##########################################################################
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
|
|
||||||
{{ end -}}
|
{{ else if eq .chezmoi.osRelease "arch" -}}
|
||||||
|
sudo pacman -Syu --noconfirm
|
||||||
|
|
||||||
{{ else if .chezmoi.os "darwin" -}}
|
{{ 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
|
||||||
@ -47,18 +42,19 @@ $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.osRelease "arch" -}}
|
||||||
|
sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo
|
||||||
|
|
||||||
{{ else if eq .chezmoi.os "darwin" -}}
|
{{ else if eq .chezmoi.os "darwin" -}}
|
||||||
brew install $BASE_PACKAGES
|
brew install $BASE_PACKAGES
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -122,11 +118,14 @@ $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 "arch" -}}
|
||||||
|
sudo pacman -Sy --noconfirm neovim fish atuin $ACT_PACKAGES
|
||||||
|
nix-env -iA nixpkgs.jump
|
||||||
|
|
||||||
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
|
{{ 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
|
||||||
@ -136,7 +135,6 @@ sleep 3
|
|||||||
brew install fish neovim $ACT_PACKAGES atuin jump -y
|
brew install fish neovim $ACT_PACKAGES atuin jump -y
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
|
|
||||||
## Install fisher plugin manager for fish, so that we may update in after plugin list sync by chezmoi
|
## Install fisher plugin manager for fish, so that we may update in after plugin list sync by chezmoi
|
||||||
|
Loading…
Reference in New Issue
Block a user