From c0ace3ce0e4fd5c53572c547252365a724110c03 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 10 Aug 2019 15:09:02 -0400 Subject: shell: it probably makes more sense to start ssh-agent in ~/.profile --- .profile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.profile') diff --git a/.profile b/.profile index 4ca1d4b..3b0071f 100644 --- a/.profile +++ b/.profile @@ -52,6 +52,16 @@ if [ -z "$IS_GUIX_SYSTEM" ]; then fi fi +# start an ssh-agent (with guix's openssh) +if [ -z "$IS_GUIX_SYSTEM" ]; then + if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > ~/.ssh-agent-thing + fi + if [[ ! "$SSH_AUTH_SOCK" ]]; then + eval "$(<~/.ssh-agent-thing)" + fi +fi + setxkbmap \ -layout us,ir \ -option ctrl:nocaps \ -- cgit v1.2.3-60-g2f50