From 0a812503ea56277327c32a342800e45412c8f4ee Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sun, 3 Mar 2024 16:26:18 +0100 Subject: [PATCH] Up. --- .chezmoi.toml | 6 ++++-- .../run_onchange_after_10-install-packages.sh.tmpl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.chezmoi.toml b/.chezmoi.toml index 07b221b..68ca435 100644 --- a/.chezmoi.toml +++ b/.chezmoi.toml @@ -1,2 +1,4 @@ -[scriptEnv] - SYSTEM_RUSTUP = true +{{ $installSystemRustup := promptBoolOnce "Install rustup from system or asdf ?" true -}} + +[data.system] + rustup = {{ $installSystemRustup }} diff --git a/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl index 5e8ed6e..1846a37 100644 --- a/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl @@ -26,7 +26,7 @@ packages=( zoxide ) -log "Rustup var: $SYSTEM_RUSTUP" +log "Rustup var: {{ .system.rustup }}" {{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}