2024-01-20 21:50:27 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
2024-01-20 21:55:48 +00:00
|
|
|
packages=(
|
2024-02-27 15:18:56 +00:00
|
|
|
cargo
|
2024-01-20 21:55:48 +00:00
|
|
|
neovim
|
|
|
|
npm
|
2024-02-27 15:18:56 +00:00
|
|
|
python-pip
|
|
|
|
python-pynvim
|
|
|
|
ripgrep
|
2024-01-20 21:55:48 +00:00
|
|
|
)
|
2024-01-20 21:50:27 +00:00
|
|
|
|
2024-01-20 21:55:48 +00:00
|
|
|
echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
|
|
|
|
|
2024-02-26 22:12:51 +00:00
|
|
|
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
2024-01-20 21:50:27 +00:00
|
|
|
|
2024-02-26 22:12:51 +00:00
|
|
|
## Update system
|
|
|
|
{{- if ne .chezmoi.username "root" }}
|
|
|
|
sudo pacman -Syu --noconfirm
|
|
|
|
{{- else }}
|
|
|
|
pacman -Syu --noconfirm
|
|
|
|
{{- end}}
|
|
|
|
|
|
|
|
## Install packages
|
|
|
|
for package in ${packages[@]}; do
|
|
|
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
|
|
|
echo "installing packages"
|
|
|
|
|
|
|
|
{{- if ne .chezmoi.username "root" }}
|
|
|
|
sudo yay -S --noconfirm $package
|
|
|
|
{{- else }}
|
|
|
|
yay -S --noconfirm $package
|
|
|
|
{{- end }}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
|
|
|
|
|
|
|
## Update system
|
|
|
|
{{- if ne .chezmoi.username "root" }}
|
|
|
|
DEBIAN_FRONTEND=noninteractive sudo -E apt update
|
|
|
|
DEBIAN_FRONTEND=noninteractive sudo -E apt upgrade --yes
|
|
|
|
{{- else }}
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt update
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt upgrade --yes
|
|
|
|
{{- end}}
|
|
|
|
|
|
|
|
## Install packages
|
2024-02-27 15:18:56 +00:00
|
|
|
packages=(${packages[@]//neovim/})
|
|
|
|
packages=(${packages[@]//cargo/})
|
|
|
|
packages=(${packages[@]//python/python3})
|
|
|
|
|
|
|
|
for package in ${packages[@]}; do
|
|
|
|
echo "installing ${package}..."
|
|
|
|
|
|
|
|
{{- if ne .chezmoi.username "root" }}
|
|
|
|
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
|
|
|
|
{{- else }}
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing $package
|
|
|
|
{{- end }}
|
|
|
|
done
|
2024-02-26 22:12:51 +00:00
|
|
|
|
2024-02-27 15:18:56 +00:00
|
|
|
mist install cargo neovim
|
2024-02-27 14:06:11 +00:00
|
|
|
|
2024-02-26 22:12:51 +00:00
|
|
|
{{- end }}
|
2024-01-06 22:09:43 +00:00
|
|
|
|
2024-02-22 20:11:39 +00:00
|
|
|
LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s 'https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh')
|
2024-01-20 21:55:48 +00:00
|
|
|
|
2024-02-27 14:57:34 +00:00
|
|
|
~/.local/bin/lvim +LvimCacheReset +q
|
|
|
|
|
2024-01-20 21:55:48 +00:00
|
|
|
echo -e "\033[0;32m>>>>> Finish LVim installation <<<<<\033[0m"
|