From 309767509de33f891ad249fa4d2ac3210c591f2f Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 25 May 2023 14:50:12 -0700 Subject: [PATCH] Convert git-personal to chezmoi --- .chezmoiignore | 1 - dot_config/git/config-personal.tmpl | 6 ++++++ git-personal/.config/git/config-git.buddy.wtf | 2 -- git-personal/.config/git/config-git.xbudex.com | 2 -- 4 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 dot_config/git/config-personal.tmpl delete mode 100644 git-personal/.config/git/config-git.buddy.wtf delete mode 100644 git-personal/.config/git/config-git.xbudex.com diff --git a/.chezmoiignore b/.chezmoiignore index 7588aa5..d0aaa82 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,4 +1,3 @@ -/git-personal/ /go/ /hellotech/ /i3/ diff --git a/dot_config/git/config-personal.tmpl b/dot_config/git/config-personal.tmpl new file mode 100644 index 0000000..5e347d2 --- /dev/null +++ b/dot_config/git/config-personal.tmpl @@ -0,0 +1,6 @@ +{{ if lookPath "git" -}} +[url "ssh://git@git.buddy.wtf:2022"] + insteadOf = https://git.buddy.wtf +[url "ssh://git@git.xbudex.com:2022"] + insteadOf = https://git.xbudex.com +{{- end }} diff --git a/git-personal/.config/git/config-git.buddy.wtf b/git-personal/.config/git/config-git.buddy.wtf deleted file mode 100644 index f0323b6..0000000 --- a/git-personal/.config/git/config-git.buddy.wtf +++ /dev/null @@ -1,2 +0,0 @@ -[url "ssh://git@git.buddy.wtf:2022"] - insteadOf = https://git.buddy.wtf diff --git a/git-personal/.config/git/config-git.xbudex.com b/git-personal/.config/git/config-git.xbudex.com deleted file mode 100644 index 0b8d0c7..0000000 --- a/git-personal/.config/git/config-git.xbudex.com +++ /dev/null @@ -1,2 +0,0 @@ -[url "ssh://git@git.xbudex.com:2022"] - insteadOf = https://git.xbudex.com