diff --git a/home/.chezmoiscripts/run_after_10-config-zim.sh b/home/.chezmoiscripts/run_after_10-config-zim.sh new file mode 100644 index 0000000..9f84410 --- /dev/null +++ b/home/.chezmoiscripts/run_after_10-config-zim.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +ZIMDIR=${HOME}/.zim + +echo -e "\033[0;32m>>>>> Installing Zim Framework <<<<<\033[0m" +$(which zsh) -c "source ${ZIMDIR}/zimfw.zsh init -q" + +echo -e "\033[0;32m>>>>> Finish zsh installation <<<<<\033[0m" + +exit 0 + diff --git a/home/.chezmoiscripts/run_onchange_50-install-zsh.sh.tmpl b/home/.chezmoiscripts/run_onchange_50-install-zsh.sh.tmpl deleted file mode 100644 index 1cebd43..0000000 --- a/home/.chezmoiscripts/run_onchange_50-install-zsh.sh.tmpl +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash - -ZIMDIR=${HOME}/.zim - -## {{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}} - -## {{- /* we're on Arch based system */ -}} -## echo -e "\033[0;32m>>>>> Begin zsh installation <<<<<\033[0m" - -## ## Update system -## {{- if ne .chezmoi.username "root" }} -## sudo pacman -Syu --noconfirm -## {{- else }} -## pacman -Syu --noconfirm -## {{- end}} - -## ## Install packages -## if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then -## {{- if ne .chezmoi.username "root" }} -## sudo yay -S --noconfirm zsh starship -## {{- else }} -## yay -S --noconfirm zsh starship -## {{- end }} -## fi - - -## {{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}} - -## {{- /* we're on Debian based system */ -}} -## echo -e "\033[0;32m>>>>> Begin zsh installation <<<<<\033[0m" - -## ## 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 -## {{- if ne .chezmoi.username "root" }} -## DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing zsh -## {{- else }} -## DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing zsh -## {{- end }} - -## curl -sS https://starship.rs/install.sh | sh - -## {{- end }} - - -echo -e "\033[0;32m>>>>> Installing Zim Framework <<<<<\033[0m" -$(which zsh) -c "source ${ZIMDIR}/zimfw.zsh init -q" - -echo -e "\033[0;32m>>>>> Finish zsh installation <<<<<\033[0m" - -exit 0 -