From 9b409f1f5f6aed65164feffcb8d5f113723642de Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 28 Nov 2022 04:20:32 +0000 Subject: [PATCH] Update dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl, dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl --- .../create_private_readonly_private_id_rsa.tmpl | 6 +++--- .../share/chezmoi/home/dot_tool_versions.tmpl | 14 -------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl b/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl index 8e0643c8..91a55438 100644 --- a/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl +++ b/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl @@ -1,10 +1,10 @@ -{{- $bwAuthenticated = eq (fromJson (output "bw" "status")).status "authenticated" }} +{{- $bwAuthenticated := eq (fromJson (output "bw" "status")).status "authenticated" }} {{- if $bwAuthenticated -}} {{- (bitwarden "item" "dev.betelgeuse.ssh.personal.id_rsa.private").notes -}} {{- else -}} -{{- $sshLocation = (joinPath .chezmoi.homeDir ".ssh" "id_rsa") -}} +{{- $sshLocation := (joinPath .chezmoi.homeDir ".ssh" "id_rsa") -}} {{- if not (stat $sshLocation) -}} -{{- $sshKeygen = (output "ssh-keygen" "-b" "4096" "-t" "rsa" "-f" $sshLocation "-q" "-N" }} +{{- $sshKeygen := (output "ssh-keygen" "-b" "4096" "-t" "rsa" "-f" $sshLocation "-q" "-N") }} {{- end -}} {{- include $sshLocation }} {{ end }} diff --git a/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl b/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl index 0c7998cf..ebc18b2e 100644 --- a/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl +++ b/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl @@ -1,23 +1,9 @@ -{{- if .toolchains.go }} golang system -{{- end -}} -{{- if .toolchains.java }} java openjdk-17 -{{- end -}} -{{- if .toolchains.node }} deno system nodejs system -{{- end -}} -{{- if .toolchains.php }} php 8.1.12 -{{- end -}} -{{- if .toolchains.python }} poetry system python system -{{- end -}} -{{- if .toolchains.ruby }} ruby 3.1.1 -{{- end -}} -{{- if .toolchains.rust }} rust system -{{- end -}}