From 06eedd1fd624bf229d3866d37baa81bc486d250c Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sat, 17 Sep 2022 17:14:42 +0200 Subject: [PATCH] autopushed --- chezmoi.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/chezmoi.md b/chezmoi.md index 257e43401..244e58738 100644 --- a/chezmoi.md +++ b/chezmoi.md @@ -58,9 +58,15 @@ Then use template syntax (see https://www.chezmoi.io/user-guide/templating/#simp Note that you need to edit the file with chezmoi edit every time essentially, unless you intend to get conflicts later. It seems like a fair tradeoff to me. -An example from my sway config: +An example from my sway config which shows the syntax for if .. else if .. else: ``` - +{{ if eq .chezmoi.hostname "nostromo" }} +set $focused #b43757 +{{ else if eq .chezmoi.hostname "paramita" }} +set $focused #472dbc +{{ else }} +set $focused #b46b37 +{{ end }} ```