From 4a04eb3250fcb1e4700aaa5444ed411bb209dd21 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 12 Apr 2016 15:13:43 +0200 Subject: [PATCH] handle start of gpg-agent / add gcloud paths --- bash_profile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/bash_profile b/bash_profile index d8d9a32..0156d5b 100644 --- a/bash_profile +++ b/bash_profile @@ -66,3 +66,25 @@ export PATH="$PATH:$HOME/.rvm/bin" # Load RVM into a shell session *as a function* [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" + + +# ---------------------------------------------------------------------- +# gpg-agent +# ---------------------------------------------------------------------- + +if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then + source ~/.gnupg/.gpg-agent-info + export GPG_AGENT_INFO +else + eval $(gpg-agent --daemon --write-env-file ~/.gnupg/.gpg-agent-info) +fi + + +# ---------------------------------------------------------------------- +# Google Cloud SDK +# ---------------------------------------------------------------------- + +if [ -s ~/Code/google-cloud-sdk/ ]; then + source ~/Code/google-cloud-sdk/path.bash.inc + source ~/Code/google-cloud-sdk/completion.bash.inc +fi