--- /dev/null
+if type keychain >-; then
+ eval `keychain --clear --quiet --agents gpg --eval`
+fi
--- /dev/null
+[ -z "$HOSTNAME" ] && HOSTNAME=`uname -n`
+[ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] && . $HOME/.keychain/$HOSTNAME-sh-gpg
--- /dev/null
+if status --is-interactive
+ if type keychain >/dev/null
+ keychain --clear --quiet --agents gpg --eval | source
+ end
+end
--- /dev/null
+if type keychain >-; then
+ keychain --clear --quiet --agents gpg
+fi
--- /dev/null
+[ -z "$HOSTNAME" ] && HOSTNAME=`uname -n`
+[ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] && . $HOME/.keychain/$HOSTNAME-sh-gpg