From e09e55d38a1d0b03326030377655a797e639bf3e Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 9 Jan 2019 16:47:47 +0300 Subject: [PATCH] keychain --- env.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/env.zsh b/env.zsh index 0466ae4..ab93b25 100644 --- a/env.zsh +++ b/env.zsh @@ -3,4 +3,11 @@ export PATH=~/.local/bin:$PATH # Удалить дубликаты в PATH typeset -U PATH +KEYCHAIN_DIR="$HOME/.cache/keychain" + +if [ -d "${KEYCHAIN_DIR}" ]; then + h="$(uname -n 2>/dev/null || echo unknown)" + [ -f "${KEYCHAIN_DIR}/$h-sh" ] && source "${KEYCHAIN_DIR}/$h-sh" + [ -f "${KEYCHAIN_DIR}/$h-sh-gpg" ] && source "${KEYCHAIN_DIR}/$h-sh-gpg" +fi