From 7b418c2abcf6d312ad4a5f3d19f40c36f70b105b Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sun, 15 Sep 2019 11:36:03 +0100 Subject: [PATCH] zsh: export secrets in interactive shells --- .config/zsh/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 259acbe..8d3a1c0 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -142,6 +142,13 @@ ZSH_HIGHLIGHT_STYLES[redirection]='fg=cyan,bold' source "$DOTFILES/aliases" +# Source secret keys and values into environment +if [ -f "$XDG_CONFIG_HOME/secrets" ]; then + set -o allexport + source $XDG_CONFIG_HOME/secrets + set +o allexport +fi + # Load some manual plugins source "$ZSH_DIR/plugins/sudo.zsh" source "$ZSH_DIR/plugins/fish-theme.zsh"