mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-09 08:07:12 -06:00
add ssh keychain startup to bashrc/WSL
This commit is contained in:
@@ -109,3 +109,8 @@ fi
|
|||||||
|
|
||||||
{{/* Chezmoi's shell completion */ -}}
|
{{/* 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 }}
|
||||||
Reference in New Issue
Block a user