From 4533824fcf777ffc9bf504c61ec523de5141ebd3 Mon Sep 17 00:00:00 2001 From: odrling Date: Tue, 10 Mar 2020 15:02:20 +0100 Subject: [PATCH] start ssh-agent in .profile --- .profile | 3 +++ .zprofile | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.profile b/.profile index 48e8dae..9f7162b 100644 --- a/.profile +++ b/.profile @@ -9,6 +9,9 @@ export FZF_DEFAULT_COMMAND="find . -type f | cut -d'/' -f2-" # fix java swing applications export _JAVA_AWT_WM_NONREPARENTING=1 +# start ssh-agent +eval $(ssh-agent > /dev/null) + [ -f ~/.profile.local ] && . ~/.profile.local if [ "$(tty)" = '/dev/tty1' ]; then diff --git a/.zprofile b/.zprofile index 97f60bf..4b9db27 100644 --- a/.zprofile +++ b/.zprofile @@ -1,5 +1,4 @@ typeset -U path export path -source ~/.zsh/omz/oh-my-zsh/plugins/ssh-agent/ssh-agent.plugin.zsh . ~/.profile