diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index 076977f..df977c4 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -1,3 +1,8 @@ +# If WSL, add SSH key on startup (once per WSL start) +{{- if .wsl }} +eval `keychain --quiet --eval --agents ssh ~/.ssh/id_rsa` +{{ end }} + # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then