diff --git a/extensions/keychain.ksh b/extensions/keychain.ksh new file mode 100755 index 0000000..57f74e2 --- /dev/null +++ b/extensions/keychain.ksh @@ -0,0 +1,6 @@ +KEYCHAIN_OPTS=${KEYCHAIN_OPTS:---gpg2 --inherit any --agents ssh,gpg -q -Q} +KEYCHAIN_CONF="$HOME/.keychain/$(uname -n)-sh" + +[ -f "${KEYCHAIN_CONF}" ] && . "${KEYCHAIN_CONF}" +[ -f "${KEYCHAIN_CONF}-gpg" ] && . "${KEYCHAIN_CONF}-gpg" + diff --git a/extensions/keychain.org b/extensions/keychain.org new file mode 100644 index 0000000..d722e4d --- /dev/null +++ b/extensions/keychain.org @@ -0,0 +1,5 @@ +* keychain + +** Variables + +- KEYCHAIN_OPTS :: --gpg2 --inherit any --agents ssh,gpg -q -Q