From 52606bf8fdaf21bb0713898c502ea259d79178cb Mon Sep 17 00:00:00 2001 From: inkch Date: Wed, 17 Jan 2024 10:24:06 +0900 Subject: [PATCH] add `.chezmoi.toml.tmpl` --- .chezmoi.toml.tmpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .chezmoi.toml.tmpl diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..b3edbaf --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,15 @@ +[edit] + command = "nvim" + +[diff] + command = "delta" + +[merge] + command = "nvim" + args = ["-d", "{{ .Destination }}", "{{ .Source }}", "{{ .Target }}"] + +{{- $choices := list "desktop" "laptop" "server" -}} +{{- $hosttype := promptChoiceOnce . "hosttype" "What type of host?" $choices -}} + +[data] + hosttype = {{- $hosttype | quote -}}