From fc421f35419cfd4aa72042eee39ae996f732638f Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 30 Aug 2023 10:21:27 +0200 Subject: [PATCH] add new templates --- .zprofile_darwin => .chezmoitemplates/zprofile_darwin.tmpl | 2 +- .zprofile_linux => .chezmoitemplates/zprofile_linux.tmpl | 0 .zshrc_darwin => .chezmoitemplates/zshrc_darwin.tmpl | 0 .zshrc_linux => .chezmoitemplates/zshrc_linux.tmpl | 0 dot_zprofile.tmpl | 5 ++--- dot_zshrc.tmpl | 5 ++--- 6 files changed, 5 insertions(+), 7 deletions(-) rename .zprofile_darwin => .chezmoitemplates/zprofile_darwin.tmpl (62%) rename .zprofile_linux => .chezmoitemplates/zprofile_linux.tmpl (100%) rename .zshrc_darwin => .chezmoitemplates/zshrc_darwin.tmpl (100%) rename .zshrc_linux => .chezmoitemplates/zshrc_linux.tmpl (100%) diff --git a/.zprofile_darwin b/.chezmoitemplates/zprofile_darwin.tmpl similarity index 62% rename from .zprofile_darwin rename to .chezmoitemplates/zprofile_darwin.tmpl index 89f7a78..2f88d66 100644 --- a/.zprofile_darwin +++ b/.chezmoitemplates/zprofile_darwin.tmpl @@ -3,7 +3,7 @@ export LC_ALL=en_US.UTF-8 export PATH=/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH # Added by Toolbox App -export PATH="$PATH:/Users/simono41/Library/Application Support/JetBrains/Toolbox/scripts" +export PATH="$PATH:/Users/{{ .chezmoi.username }}/Library/Application Support/JetBrains/Toolbox/scripts" eval "$(/opt/homebrew/bin/brew shellenv)" diff --git a/.zprofile_linux b/.chezmoitemplates/zprofile_linux.tmpl similarity index 100% rename from .zprofile_linux rename to .chezmoitemplates/zprofile_linux.tmpl diff --git a/.zshrc_darwin b/.chezmoitemplates/zshrc_darwin.tmpl similarity index 100% rename from .zshrc_darwin rename to .chezmoitemplates/zshrc_darwin.tmpl diff --git a/.zshrc_linux b/.chezmoitemplates/zshrc_linux.tmpl similarity index 100% rename from .zshrc_linux rename to .chezmoitemplates/zshrc_linux.tmpl diff --git a/dot_zprofile.tmpl b/dot_zprofile.tmpl index 8176e72..2285939 100644 --- a/dot_zprofile.tmpl +++ b/dot_zprofile.tmpl @@ -1,6 +1,5 @@ {{- if eq .chezmoi.os "darwin" -}} -{{- include ".zprofile_darwin" -}} +{{- template "zprofile_darwin.tmpl" . -}} {{- else if eq .chezmoi.os "linux" -}} -{{- include ".zprofile_linux" -}} +{{- template "zprofile_linux.tmpl" . -}} {{- end -}} - diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 6e62fff..866c5f4 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -1,6 +1,5 @@ {{- if eq .chezmoi.os "darwin" -}} -{{- include ".zshrc_darwin" -}} +{{- template "zshrc_darwin.tmpl" . -}} {{- else if eq .chezmoi.os "linux" -}} -{{- include ".zshrc_linux" -}} +{{- template "zshrc_linux.tmpl" . -}} {{- end -}} -