From 4b52b54606a90fe24b273271091a725950dd4e66 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 17 Jan 2017 23:13:47 -0500 Subject: [PATCH] os/arch/.xprofile: start (ssh|gpg)-agent --- os/arch/.xprofile | 3 +++ os/arch/env.zsh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/os/arch/.xprofile b/os/arch/.xprofile index c9e23b79..33853719 100644 --- a/os/arch/.xprofile +++ b/os/arch/.xprofile @@ -35,3 +35,6 @@ run mpd & # music server run redshift & # screen temperature based on time-of-day $HOME/.bin/rsl.sh # resilio sync +# +ssh-agent -s | sed 's/^echo/#echo/' > ~/.ssh/agentenv +gpg-agent --daemon | sed 's/^echo/#echo/' > ~/.gnupg/agentenv diff --git a/os/arch/env.zsh b/os/arch/env.zsh index 0db52330..51e6c475 100644 --- a/os/arch/env.zsh +++ b/os/arch/env.zsh @@ -1 +1,2 @@ -path=(~/.bin $path) +[[ -f ~/.ssh/agentenv ]] && source ~/.ssh/agentenv +[[ -f ~/.gnupg/agentenv ]] && source ~/.gnupg/agentenv