From 3b3f7e60a68a6351b2855f46c36ffb6b508ba123 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Thu, 16 Jul 2026 13:08:13 +0200 Subject: [PATCH] chore: Small improvments... --- .chezmoitemplates/mise-tools | 3 ++- README.md | 3 +++ private_dot_config/mise/config.toml.tmpl | 3 +++ run_once_after_00-install-mise.sh.tmpl | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.chezmoitemplates/mise-tools b/.chezmoitemplates/mise-tools index b9e49f0..4acdffb 100644 --- a/.chezmoitemplates/mise-tools +++ b/.chezmoitemplates/mise-tools @@ -1,6 +1,7 @@ {{/* .chezmoitemplates/mise-tools */}} {{- $hostname := output "hostname" | trim -}} -# Configuration pour l'hôte {{ $hostname }} +{{- $username := .chezmoi.username }} +# Configuration personnalisée pour l'utilisateur {{ $username }} et l'hôte {{ $hostname }} {{- $currentHost := index .hosts $hostname -}} {{- if $currentHost }} {{- /* 1. Parcourir les toolboxes associées à cet hôte */}} diff --git a/README.md b/README.md index 49b6e21..b545eb2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # Chezmoi Ce dépôt contient ma configuration pour l'outil [chezmoi](https://www.chezmoi.io/) qui permet la gestion des fichiers dot files. + +Pour lancer un bootstrap rapide de mon environnement complet, lancer la commande suivante : +`sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init --apply https://gitea.cloud.logerais.com/xavier/config-chezmoi.git` diff --git a/private_dot_config/mise/config.toml.tmpl b/private_dot_config/mise/config.toml.tmpl index 38d0f3c..1022e09 100644 --- a/private_dot_config/mise/config.toml.tmpl +++ b/private_dot_config/mise/config.toml.tmpl @@ -1,3 +1,6 @@ +# Ce fichier est généré automatiquement par l'outil chezmoi +# Préférez apporter vos modification depuis chezmoi que directement ici + [settings] experimental = true diff --git a/run_once_after_00-install-mise.sh.tmpl b/run_once_after_00-install-mise.sh.tmpl index 74e222b..0ddfb3d 100644 --- a/run_once_after_00-install-mise.sh.tmpl +++ b/run_once_after_00-install-mise.sh.tmpl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1. Installer Mise s'il n'est pas présent if ! command -v mise &>/dev/null; then