From fdbc42860a1fe2f8c4f487023b4ea0f246b99d06 Mon Sep 17 00:00:00 2001 From: dalahast Date: Mon, 7 Sep 2020 17:50:22 +0200 Subject: [PATCH] update zshrc --- .zshrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.zshrc b/.zshrc index 9c02d94..5e2a40f 100644 --- a/.zshrc +++ b/.zshrc @@ -71,6 +71,20 @@ export LANG=en_US.UTF-8 # Compilation flags # export ARCHFLAGS="-arch x86_64" +# ssh auth stuffs +if [ ! -S ~/.ssh/ssh_auth_sock ]; then + eval `ssh-agent` > /dev/null + ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock +fi +export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock +ssh-add -l > /dev/null || ssh-add > /dev/null + +if [ -n "$DESKTOP_SESSION" ];then + eval $(gnome-keyring-daemon --start --components=ssh) + export SSH_AUTH_SOCK +fi + + # Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=10000