From 680e6775716b37f73ad75cc6954eefec7ace0dfe Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 5 Dec 2022 04:15:39 +0000 Subject: [PATCH] Update .local/share/chezmoi/home/dot_local/bin/executable_provision.tmpl --- .../dot_local/bin/executable_provision.tmpl | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_provision.tmpl b/.local/share/chezmoi/home/dot_local/bin/executable_provision.tmpl index 91b9baea..bec59d01 100644 --- a/.local/share/chezmoi/home/dot_local/bin/executable_provision.tmpl +++ b/.local/share/chezmoi/home/dot_local/bin/executable_provision.tmpl @@ -217,21 +217,21 @@ find "$HOME/.local/bin" -maxdepth 1 -mindepth 1 -type f | while read BINFILE; do chmod +x "$BINFILE" done -### Show README.md snippet -if command -v glow > /dev/null; then - glow "$HOME/.local/share/chezmoi/docs/CHEZMOI-INTRO.md" -fi - -### Prompt for variables -if command -v gum > /dev/null; then - if [ -z "$SOFTWARE_GROUP" ]; then - logg prompt 'Select the software group you would like to install. If your environment is a macOS, Windows, or environment with the DISPLAY environment variable then desktop software will be installed too. The software groups are in the ~/.local/share/chezmoi/home/.chezmoidata.yaml file.' - SOFTWARE_GROUP="$(gum choose "Basic" "Standard" "Development" "Experimental")" - fi -fi - ### Run chezmoi init if [ ! -f "$HOME/.config/chezmoi/chezmoi.yaml" ]; then + ### Show README.md snippet + if command -v glow > /dev/null; then + glow "$HOME/.local/share/chezmoi/docs/CHEZMOI-INTRO.md" + fi + + ### Prompt for variables + if command -v gum > /dev/null; then + if [ -z "$SOFTWARE_GROUP" ]; then + logg prompt 'Select the software group you would like to install. If your environment is a macOS, Windows, or environment with the DISPLAY environment variable then desktop software will be installed too. The software groups are in the ~/.local/share/chezmoi/home/.chezmoidata.yaml file.' + SOFTWARE_GROUP="$(gum choose "Basic" "Standard" "Development" "Experimental")" + fi + fi + logg info 'Running `chezmoi init` since the ~/.config/chezmoi/chezmoi.yaml is not present' chezmoi init fi