From ad8cc6aa036cf2710749b0af1709ad6f4d012901 Mon Sep 17 00:00:00 2001 From: Andrew Spratley Date: Sat, 3 Feb 2024 22:08:32 +0000 Subject: [PATCH] feat: add chezmoi bash alias --- dot_bash_aliases.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dot_bash_aliases.tmpl b/dot_bash_aliases.tmpl index bd9eaa3..215dab3 100644 --- a/dot_bash_aliases.tmpl +++ b/dot_bash_aliases.tmpl @@ -63,3 +63,12 @@ gaf() { git fixup } +{{ if (and (not .devcontainers) (not .codespaces)) }} +# Chezmoi +function chezmoi() { + export DOPPLER_PROJECT=development + export DOPPLER_CONFIG=$(hostname) + export DOPPLER_TOKEN=$(doppler configure --json | yq '.. | select(has("token"))' | yq '.token') + command chezmoi "$@" +} +{{ end }}