1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-22 09:47:21 +01:00

handle start of gpg-agent / add gcloud paths

This commit is contained in:
Matthias Kretschmann 2016-04-12 15:13:43 +02:00
parent bcee6212c3
commit 4a04eb3250
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC

View File

@ -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