Update dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl, dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl

This commit is contained in:
Brian Zalewski 2022-11-28 04:20:32 +00:00
parent f036f0fa08
commit 9b409f1f5f
2 changed files with 3 additions and 17 deletions

View file

@ -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 }}

View file

@ -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 -}}