add ssh keychain startup to bashrc/WSL

This commit is contained in:
2025-06-24 19:19:43 -05:00
parent 8f0d5c209a
commit fdd54b3b50

View File

@@ -108,4 +108,9 @@ fi
{{ template "scripts/commonrc.sh.tmpl" dict "data" . "shell" "bash" }}
{{/* Chezmoi's shell completion */ -}}
{{ completion "bash" }}
{{ completion "bash" }}
# If WSL, add SSH key on startup (once per WSL start)
{{- if .wsl }}
eval `keychain --quiet --eval --agents ssh ~/.ssh/id_rsa`
{{ end }}