Mercurial > dotfiles
diff dot_zshrc @ 651:c6ce12cfc85f
Add ssh-agent to zsh startup
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 06 Sep 2022 08:07:51 +0200 |
parents | da1e79692928 |
children | ad96f4d65995 |
line wrap: on
line diff
--- 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