# HG changeset patch # User zegervdv # Date 1662444471 -7200 # Node ID c6ce12cfc85f1b531eb314de9930465e2965c168 # Parent da1e7969292822c4c9a541afae97d10b2188c5a4 Add ssh-agent to zsh startup diff -r da1e79692928 -r c6ce12cfc85f dot_zshrc --- a/dot_zshrc Mon Sep 05 08:49:22 2022 +0200 +++ b/dot_zshrc Tue Sep 06 08:07:51 2022 +0200 @@ -182,6 +182,10 @@ zstyle ':completion:*:*:nvim:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)' zstyle ':completion:*:*:nvim:*' file-sort modification +if [ -z "$SSH_AUTH_SOCK" ]; then + eval "$(ssh-agent)" +fi + # fg when pressing Ctrl+Z function fancy-ctrl-z () { if [[ $#BUFFER -eq 0 ]]; then