diff --git a/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl index fce2f83..fc18aa8 100644 --- a/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl @@ -81,7 +81,7 @@ packages=( ## Install packages packages=(${packages[@]//starship/makedeb}) - packages+=(mist) + packages+=(mist cmake ninja-build pkg-config) for package in ${packages[@]}; do echo "installing ${package}..." @@ -93,7 +93,11 @@ packages=( {{- end }} done - ## curl -sS https://starship.rs/install.sh | sh + {{- if ne .chezmoi.username "root" }} + DEBIAN_FRONTEND=noninteractive sudo -E mist install starship + {{- else }} + DEBIAN_FRONTEND=noninteractive mist install starship + {{- end }} echo -e "\033[0;32m>>>>> Finish Debian/Ubuntu Linux packages installation <<<<<\033[0m"