Skip to content

Commit

Permalink
chore: config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed Sep 25, 2024
1 parent 68b4854 commit 6446781
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
21 changes: 21 additions & 0 deletions home/.chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# -*-mode:conf-toml-*- vim:ft=toml

# ~/.local/share/chezmoi/.chezmoi.toml.tmpl
# =============================================================================
# Used to customize configuration when doing a `chezmoi init`.
#
# This template file will trigger prompts to fill-in machine-specific
# templateable values. The resulting file is then created at
# `~/.config/chezmoi/chezmoi.toml`
# See https://www.chezmoi.io/docs/how-to/
#
# {{- /* This file supports Go's text/template language. */}}

{{- $gitemail := "301291+pragmaticivan@users.noreply.github.com" -}}
{{- $name := "Ivan Santos" -}}
{{- $editor := "Ivan Santos" -}}
Expand All @@ -13,6 +26,13 @@
{{- $system = promptString "System (client or server)" -}}
{{- end -}}

{{- $tty := "" -}}
{{- if stdinIsATTY -}}
{{- $tty = "true" -}}
{{- else -}}
{{- $tty = "false" -}}
{{- end -}}

sourceDir: {{ .chezmoi.sourceDir }}

---
Expand All @@ -22,3 +42,4 @@ data:
gitemail: {{ $gitemail | quote }}
editor: {{ $editor | quote }}
visualeditor: {{ $visual_editor | quote }}
tty: {{ $tty | quote }}
4 changes: 0 additions & 4 deletions home/.chezmoidata.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
name: "Ivan Santos"
gitemail: "301291+pragmaticivan@users.noreply.github.com"
editor: "nvim"
visualeditor: "code"
mise_plugins:
- "poetry"
- "https://github.com/asdf-community/asdf-hashicorp"
Expand Down
5 changes: 5 additions & 0 deletions home/dot_gitconfig.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,8 @@

# Include extra configuration (if any).
path = .gitconfig_local

{{ if eq .tty "true" -}}
[url "git@github.com:"]
insteadOf = https://github.com/
{{ end -}}

0 comments on commit 6446781

Please sign in to comment.