aboutsummaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.zshrc16
1 files changed, 9 insertions, 7 deletions
diff --git a/.zshrc b/.zshrc
index 0dae9f6..03d6f93 100644
--- a/.zshrc
+++ b/.zshrc
@@ -773,10 +773,12 @@ NO_verbose \
# GPG / SSH AGENT
-keychain id_rsa
-keychain -Q ${GPGKEY} ${GPGKEY1}
-[ -z "$HOSTNAME" ] && HOSTNAME=`uname -n`
-[ -f $HOME/.keychain/$HOSTNAME-sh ] &&
- . $HOME/.keychain/$HOSTNAME-sh
-[ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] &&
- . $HOME/.keychain/$HOSTNAME-sh-gpg
+if [[ "KEYCHAIN" = "True" ]]; then
+ keychain id_rsa
+ keychain -Q ${GPGKEY} ${GPGKEY1}
+ [ -z "$HOSTNAME" ] && HOSTNAME=`uname -n`
+ [ -f $HOME/.keychain/$HOSTNAME-sh ] &&
+ . $HOME/.keychain/$HOSTNAME-sh
+ [ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] &&
+ . $HOME/.keychain/$HOSTNAME-sh-gpg
+fi