From 0f50be3a6d187465d602a9dcffc6f5370cba761b Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 9 Feb 2015 22:28:28 +0100 Subject: [PATCH] exporting some gpg agent variables and initializing rbenv if found --- .zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.zshrc b/.zshrc index 7da9ca2..f990096 100644 --- a/.zshrc +++ b/.zshrc @@ -38,6 +38,17 @@ if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting. source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" fi +# GPG Agent +if [ -f "${HOME}/.gpg-agent-info" ]; then + . "${HOME}/.gpg-agent-info" + export GPG_AGENT_INFO + export SSH_AUTH_SOCK +fi +export GPG_TTY=$(tty) + +# rbenv +hash rbenv 2>/dev/null && eval "$(rbenv init -)" + # Aliases if [ "$(uname -s | tr '[:upper:]' '[:lower:]')" = 'linux' ]; then alias ls='ls --color=auto'