Up.
This commit is contained in:
parent
d1fb3196b4
commit
eba5010f23
@ -25,23 +25,23 @@ packages=(
|
|||||||
|
|
||||||
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
||||||
|
|
||||||
log ">>>>> Begin Arch/Manjaro Linux packages installation <<<<<"
|
log "Begin Arch/Manjaro Linux packages installation"
|
||||||
|
|
||||||
## Update system
|
## Update system
|
||||||
inf "updating system..."
|
inf "updating system..."
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo pacman -Syu --noconfirm
|
sudo pacman -Syu --noconfirm --quiet
|
||||||
{{- else }}
|
{{- else }}
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm --quiet
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
## Install yay
|
## Install yay
|
||||||
if [ ! $(command -v yay) ]; then
|
if [ ! $(command -v yay) ]; then
|
||||||
inf "installing yay..."
|
inf "installing yay..."
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo pacman -S --needed --noconfirm git base-devel
|
sudo pacman -S --needed --noconfirm --quiet git base-devel
|
||||||
{{- else}}
|
{{- else}}
|
||||||
pacman -S --needed --noconfirm git base-devel
|
pacman -S --needed --noconfirm --quiet git base-devel
|
||||||
{{- end }}
|
{{- end }}
|
||||||
git clone https://aur.archlinux.org/yay.git /tmp/yay
|
git clone https://aur.archlinux.org/yay.git /tmp/yay
|
||||||
cd /tmp/yay
|
cd /tmp/yay
|
||||||
@ -53,38 +53,38 @@ packages=(
|
|||||||
for package in ${packages[@]}; do
|
for package in ${packages[@]}; do
|
||||||
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||||
inf "installing ${package}..."
|
inf "installing ${package}..."
|
||||||
yay -S --noconfirm $package
|
yay -S --noconfirm --quiet $package
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
log ">>>>> Finish Arch/Manjaro Linux packages installation <<<<<"
|
log "Finish Arch/Manjaro Linux packages installation"
|
||||||
|
|
||||||
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
||||||
|
|
||||||
log ">>>>> Begin Debian/Ubuntu Linux packages installation <<<<<"
|
log "Begin Debian/Ubuntu Linux packages installation"
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noninteractive
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
## Add repositories and update system
|
## Add repositories and update system
|
||||||
inf "updating system..."
|
inf "updating system..."
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo -E apt-get install --yes --no-install-recommends --ignore-missing lsb-release gpg
|
sudo -E apt-get install --yes --no-install-recommends --ignore-missing -qq lsb-release gpg
|
||||||
curl -fsSL 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null
|
curl -fsSL 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list
|
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list
|
||||||
curl -fsSL 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
|
curl -fsSL 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
|
||||||
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
|
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
|
||||||
sudo -E apt update
|
sudo -E apt update -qq
|
||||||
sudo -E apt upgrade --yes
|
sudo -E apt upgrade --yes -qq
|
||||||
sudo -E apt-get install --yes --no-install-recommends --ignore-missing mist
|
sudo -E apt-get install --yes --no-install-recommends --ignore-missing -qq mist
|
||||||
{{- else }}
|
{{- else }}
|
||||||
apt-get install --yes --no-install-recommends --ignore-missing lsb-release gpg
|
apt-get install --yes --no-install-recommends --ignore-missing -qq lsb-release gpg
|
||||||
curl -fsSL 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null
|
curl -fsSL 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | tee /etc/apt/sources.list.d/makedeb.list
|
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | tee /etc/apt/sources.list.d/makedeb.list
|
||||||
curl -fsSL 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
|
curl -fsSL 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
|
||||||
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | tee /etc/apt/sources.list.d/prebuilt-mpr.list
|
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | tee /etc/apt/sources.list.d/prebuilt-mpr.list
|
||||||
apt update
|
apt update -qq
|
||||||
apt upgrade --yes
|
apt upgrade --yes -qq
|
||||||
apt-get install --yes --no-install-recommends --ignore-missing mist
|
apt-get install --yes --no-install-recommends --ignore-missing -qq mist
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
mist update
|
mist update
|
||||||
@ -107,13 +107,13 @@ packages=(
|
|||||||
inf "installing ${package}..."
|
inf "installing ${package}..."
|
||||||
|
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
|
sudo -E apt-get install --yes --no-install-recommends --ignore-missing -qq $package
|
||||||
{{- else }}
|
{{- else }}
|
||||||
apt-get install --yes --no-install-recommends --ignore-missing $package
|
apt-get install --yes --no-install-recommends --ignore-missing -qq $package
|
||||||
{{- end }}
|
{{- end }}
|
||||||
done
|
done
|
||||||
|
|
||||||
log ">>>>> Finish Debian/Ubuntu Linux packages installation <<<<<"
|
log "Finish Debian/Ubuntu Linux packages installation"
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@ -23,19 +23,19 @@ packages=(
|
|||||||
|
|
||||||
|
|
||||||
### Install Zsh ###
|
### Install Zsh ###
|
||||||
log ">>>>> Begin Zsh installation <<<<<"
|
log "Begin Zsh installation"
|
||||||
|
|
||||||
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
||||||
|
|
||||||
## Update system
|
## Update system
|
||||||
inf "updating system..."
|
inf "updating system..."
|
||||||
yay -Syu --noconfirm
|
yay -Syu --noconfirm --quiet
|
||||||
|
|
||||||
## install packages
|
## install packages
|
||||||
for package in ${packages[@]}; do
|
for package in ${packages[@]}; do
|
||||||
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||||
inf "installing ${package}..."
|
inf "installing ${package}..."
|
||||||
yay -S --noconfirm $package
|
yay -S --noconfirm --quiet $package
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -45,11 +45,11 @@ log ">>>>> Begin Zsh installation <<<<<"
|
|||||||
## Update system
|
## Update system
|
||||||
inf "updating system..."
|
inf "updating system..."
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo -E apt update
|
sudo -E apt update -qq
|
||||||
sudo -E apt upgrade --yes
|
sudo -E apt upgrade --yes -qq
|
||||||
{{- else }}
|
{{- else }}
|
||||||
apt update
|
apt update -qq
|
||||||
apt upgrade --yes
|
apt upgrade --yes -qq
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
packages=(${packages[@]//starship/})
|
packages=(${packages[@]//starship/})
|
||||||
@ -59,9 +59,9 @@ log ">>>>> Begin Zsh installation <<<<<"
|
|||||||
inf "installing ${package}..."
|
inf "installing ${package}..."
|
||||||
|
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
|
sudo -E apt-get install --yes --no-install-recommends --ignore-missing -qq $package
|
||||||
{{- else }}
|
{{- else }}
|
||||||
apt-get install --yes --no-install-recommends --ignore-missing $package
|
apt-get install --yes --no-install-recommends --ignore-missing -qq $package
|
||||||
{{- end }}
|
{{- end }}
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -70,13 +70,13 @@ log ">>>>> Begin Zsh installation <<<<<"
|
|||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
log ">>>>> Finish Zsh installation <<<<<"
|
log "Finish Zsh installation"
|
||||||
|
|
||||||
|
|
||||||
### Config Zsh ###
|
### Config Zsh ###
|
||||||
log ">>>>> Installing Zim Framework <<<<<"
|
log "Installing Zim Framework"
|
||||||
|
|
||||||
$(which zsh) -c "source ${ZIMDIR}/zimfw.zsh init -q"
|
$(which zsh) -c "source ${ZIMDIR}/zimfw.zsh init -q"
|
||||||
|
|
||||||
log ">>>>> Finish zsh installation <<<<<"
|
log "Finish zsh installation"
|
||||||
|
|
||||||
|
@ -24,19 +24,19 @@ packages=(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
log ">>>>> Begin LVim installation <<<<<"
|
log "Begin LVim installation"
|
||||||
|
|
||||||
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
||||||
|
|
||||||
## Update system
|
## Update system
|
||||||
inf "updating system..."
|
inf "updating system..."
|
||||||
yay -Syu --noconfirm
|
yay -Syu --noconfirm --quiet
|
||||||
|
|
||||||
## Install packages
|
## Install packages
|
||||||
for package in ${packages[@]}; do
|
for package in ${packages[@]}; do
|
||||||
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||||
inf "installing ${package}..."
|
inf "installing ${package}..."
|
||||||
yay -S --noconfirm $package
|
yay -S --noconfirm --quiet $package
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -47,11 +47,11 @@ log ">>>>> Begin LVim installation <<<<<"
|
|||||||
## Update system
|
## Update system
|
||||||
inf "updating system..."
|
inf "updating system..."
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo -E apt update
|
sudo -E apt update -qq
|
||||||
sudo -E apt upgrade --yes
|
sudo -E apt upgrade --yes -qq
|
||||||
{{- else }}
|
{{- else }}
|
||||||
apt update
|
apt update -qq
|
||||||
apt upgrade --yes
|
apt upgrade --yes -qq
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
## Install packages
|
## Install packages
|
||||||
@ -63,9 +63,9 @@ log ">>>>> Begin LVim installation <<<<<"
|
|||||||
inf "installing ${package}..."
|
inf "installing ${package}..."
|
||||||
|
|
||||||
{{- if ne .chezmoi.username "root" }}
|
{{- if ne .chezmoi.username "root" }}
|
||||||
sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
|
sudo -E apt-get install --yes --no-install-recommends --ignore-missing -qq $package
|
||||||
{{- else }}
|
{{- else }}
|
||||||
apt-get install --yes --no-install-recommends --ignore-missing $package
|
apt-get install --yes --no-install-recommends --ignore-missing -qq $package
|
||||||
{{- end }}
|
{{- end }}
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -77,6 +77,6 @@ log ">>>>> Begin LVim installation <<<<<"
|
|||||||
inf "installing lvim..."
|
inf "installing lvim..."
|
||||||
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')
|
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')
|
||||||
|
|
||||||
log ">>>>> Finish LVim installation <<<<<"
|
log "Finish LVim installation"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user