Up.
This commit is contained in:
@@ -3,13 +3,23 @@
|
||||
# include lib
|
||||
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
||||
|
||||
# args
|
||||
args="--base --zsh"
|
||||
|
||||
{{- if (ne .hasNVim false) }}
|
||||
args="${args} --nvim"
|
||||
{{- end }}
|
||||
|
||||
{{- if (ne .hasLatex false) }}
|
||||
args="${args} --latex"
|
||||
{{- end }}
|
||||
|
||||
{{ if (eq .chezmoi.os "linux") -}}
|
||||
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
||||
|
||||
log "Begin Arch/Manjaro Linux packages installation"
|
||||
|
||||
. {{ .chezmoi.workingTree }}/scripts/archlinux.sh
|
||||
. {{ .chezmoi.workingTree }}/scripts/archlinux.sh ${args}
|
||||
|
||||
log "Finish Arch/Manjaro Linux packages installation"
|
||||
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
#!{{ lookPath "bash" }}
|
||||
|
||||
# Load asdf
|
||||
. "$HOME/.asdf/asdf.sh"
|
||||
|
||||
# Logging function
|
||||
log() {
|
||||
printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
inf() {
|
||||
printf "$(tput setaf 2)╚═══ᐳ $(tput sgr 0 1)$(tput setaf 2)%s$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
# include lib
|
||||
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
||||
. ${HOME}/.asdf/asdf.sh
|
||||
|
||||
|
||||
# Plugins to install
|
||||
@@ -27,7 +18,6 @@ plugins=(
|
||||
)
|
||||
|
||||
|
||||
|
||||
### Install ASDF plugins ###
|
||||
log "Begin ASDF plugins installation"
|
||||
|
||||
|
||||
17
home/.chezmoiscripts/run_once_after_30-install-lvim.sh.tmpl
Normal file
17
home/.chezmoiscripts/run_once_after_30-install-lvim.sh.tmpl
Normal file
@@ -0,0 +1,17 @@
|
||||
#!{{ lookPath "bash" }}
|
||||
|
||||
# include lib
|
||||
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
||||
|
||||
# LVim version
|
||||
lvim_version="1.4"
|
||||
|
||||
{{- if (and (ne .hasNVim false) (ne .hasLatex false)) }}
|
||||
|
||||
log "Begin LVim installation"
|
||||
|
||||
LV_BRANCH="release-${lvim_version}/neovim-0.9" bash <(curl -s "https://raw.githubusercontent.com/LunarVim/LunarVim/release-${lvim_version}/neovim-0.9/utils/installer/install.sh")
|
||||
|
||||
log "Finish LVim installation"
|
||||
|
||||
{{- end }}
|
||||
@@ -1,83 +0,0 @@
|
||||
#!{{ lookPath "bash" }}
|
||||
|
||||
# Logging function
|
||||
log() {
|
||||
printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
inf() {
|
||||
printf "$(tput setaf 2)╚═══ᐳ $(tput sgr 0 1)$(tput setaf 2)%s$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Packages to install
|
||||
packages=(
|
||||
neovim
|
||||
python-pip
|
||||
python-pynvim
|
||||
ripgrep
|
||||
)
|
||||
|
||||
# LVim version
|
||||
lvim_version="1.4"
|
||||
|
||||
|
||||
|
||||
log "Begin LVim installation"
|
||||
|
||||
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
||||
|
||||
## Update system
|
||||
inf "updating system..."
|
||||
yay -Syu --noconfirm --removemake --quiet
|
||||
|
||||
## Install packages
|
||||
for package in ${packages[@]}; do
|
||||
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||
inf "installing ${package}..."
|
||||
yay -S --noconfirm --removemake --quiet $package
|
||||
fi
|
||||
done
|
||||
|
||||
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
## Update system
|
||||
inf "updating system..."
|
||||
{{- if ne .chezmoi.username "root" }}
|
||||
sudo -E apt update -qq
|
||||
sudo -E apt upgrade --yes -qq
|
||||
{{- else }}
|
||||
apt update -qq
|
||||
apt upgrade --yes -qq
|
||||
{{- end}}
|
||||
|
||||
## Install packages
|
||||
## packages[1]=golang
|
||||
packages=(${packages[@]/python/python3})
|
||||
packages=(${packages[@]/neovim/})
|
||||
packages+=(python3-venv)
|
||||
|
||||
for package in ${packages[@]}; do
|
||||
inf "installing ${package}..."
|
||||
|
||||
{{- if ne .chezmoi.username "root" }}
|
||||
sudo -E apt-get install --yes --no-install-recommends --ignore-missing --fix-broken -qq $package
|
||||
{{- else }}
|
||||
apt-get install --yes --no-install-recommends --ignore-missing --fix-broken -qq $package
|
||||
{{- end }}
|
||||
done
|
||||
|
||||
inf "installing neovim..."
|
||||
mist install neovim
|
||||
|
||||
{{- end }}
|
||||
|
||||
inf "installing lvim..."
|
||||
LV_BRANCH="release-${lvim_version}/neovim-0.9" bash <(curl -s "https://raw.githubusercontent.com/LunarVim/LunarVim/release-${lvim_version}/neovim-0.9/utils/installer/install.sh")
|
||||
|
||||
log "Finish LVim installation"
|
||||
|
||||
|
||||
@@ -1,110 +1,37 @@
|
||||
#!{{ lookPath "bash" }}
|
||||
|
||||
# Load asdf
|
||||
# as we need cargo and it is installed from
|
||||
. "$HOME/.asdf/asdf.sh"
|
||||
|
||||
|
||||
# Logging function
|
||||
log() {
|
||||
printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
inf() {
|
||||
printf "$(tput setaf 2)╚═══ᐳ $(tput sgr 0 1)$(tput setaf 2)%s$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
|
||||
# include lib
|
||||
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
||||
. ${HOME}/.asdf/asdf.sh
|
||||
|
||||
# Environment variables
|
||||
ZIMDIR=${HOME}/.zim
|
||||
|
||||
# Packages to install
|
||||
packages=(
|
||||
zsh
|
||||
)
|
||||
|
||||
|
||||
|
||||
### Install Zsh ###
|
||||
log "Begin Zsh installation"
|
||||
|
||||
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
||||
|
||||
## Update system
|
||||
inf "updating system..."
|
||||
yay -Syu --noconfirm --removemake --quiet
|
||||
|
||||
## install packages
|
||||
for package in ${packages[@]}; do
|
||||
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||
inf "installing ${package}..."
|
||||
yay -S --noconfirm --removemake --quiet $package
|
||||
fi
|
||||
done
|
||||
|
||||
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
## Update system
|
||||
inf "updating system..."
|
||||
{{- if ne .chezmoi.username "root" }}
|
||||
sudo -E apt update -qq
|
||||
sudo -E apt upgrade --yes -qq
|
||||
{{- else }}
|
||||
apt update -qq
|
||||
apt upgrade --yes -qq
|
||||
{{- end}}
|
||||
|
||||
## packages=(${packages[@]//starship/})
|
||||
|
||||
## install packages
|
||||
for package in ${packages[@]}; do
|
||||
inf "installing ${package}..."
|
||||
|
||||
{{- if ne .chezmoi.username "root" }}
|
||||
sudo -E apt-get install --yes --no-install-recommends --ignore-missing --fix-broken -qq $package
|
||||
{{- else }}
|
||||
apt-get install --yes --no-install-recommends --ignore-missing --fix-broken -qq $package
|
||||
{{- end }}
|
||||
done
|
||||
|
||||
## inf "installing starship..."
|
||||
## mist install starship-bin
|
||||
|
||||
{{- end }}
|
||||
|
||||
log "Finish Zsh installation"
|
||||
### Update shell install ###
|
||||
log "Begin Zsh customization"
|
||||
|
||||
|
||||
## Update cargo
|
||||
log "Installing cargo-update"
|
||||
inf "installing cargo-update..."
|
||||
|
||||
cargo install cargo-update
|
||||
|
||||
log "Finish cargo-update installation"
|
||||
|
||||
|
||||
## Install Atuin
|
||||
log "Installing atuin"
|
||||
inf "installing atuin..."
|
||||
|
||||
cargo install atuin
|
||||
|
||||
log "Finish atuin installation"
|
||||
|
||||
|
||||
## Reshim
|
||||
log "Asdf reshim..."
|
||||
inf "asdf reshim..."
|
||||
|
||||
asdf reshim
|
||||
|
||||
log "Reshim ok."
|
||||
|
||||
|
||||
### Config Zsh ###
|
||||
log "Installing Zim Framework"
|
||||
inf "installing zim framework"
|
||||
|
||||
$(which zsh) -c "source ${ZIMDIR}/zimfw.zsh init -q"
|
||||
|
||||
log "Finish zsh installation"
|
||||
|
||||
log "Finish Zsh customization"
|
||||
|
||||
|
||||
@@ -1,26 +1,17 @@
|
||||
#!{{ lookPath "bash" }}
|
||||
|
||||
# Logging function
|
||||
log() {
|
||||
printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
inf() {
|
||||
printf "$(tput setaf 2)╚═══ᐳ $(tput sgr 0 1)$(tput setaf 2)%s$(tput sgr0)\n" "$1"
|
||||
}
|
||||
|
||||
|
||||
# include lib
|
||||
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
||||
|
||||
# Environment variables
|
||||
TEXMFDIR=${HOME}/texmf/tex/latex
|
||||
|
||||
|
||||
|
||||
{{- if (ne .hasLatex false) }}
|
||||
log "Begin LaTeX repo initialization"
|
||||
log "Begin LaTeX repo initialization"
|
||||
|
||||
texhash "${TEXMFDIR}"
|
||||
texhash "${TEXMFDIR}"
|
||||
|
||||
log "Finish LaTeX repo initialization"
|
||||
log "Finish LaTeX repo initialization"
|
||||
{{ end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user