diff --git a/home/dot_bashrc.tmpl b/home/dot_bashrc.tmpl index 43d5124..197a89a 100644 --- a/home/dot_bashrc.tmpl +++ b/home/dot_bashrc.tmpl @@ -108,4 +108,9 @@ fi {{ template "scripts/commonrc.sh.tmpl" dict "data" . "shell" "bash" }} {{/* Chezmoi's shell completion */ -}} -{{ completion "bash" }} \ No newline at end of file +{{ 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 }} \ No newline at end of file