From da19218b33b20d1e855a62d7becba8f6cbfdf724 Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Sun, 4 Jan 2026 22:35:40 -0500 Subject: [PATCH] zsh: ignore files, improve secrets mgmt --- zsh/.local/share/.gitignore | 2 ++ zsh/.zshrc | 12 ++++-------- 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 zsh/.local/share/.gitignore diff --git a/zsh/.local/share/.gitignore b/zsh/.local/share/.gitignore new file mode 100644 index 0000000..ef6bfe2 --- /dev/null +++ b/zsh/.local/share/.gitignore @@ -0,0 +1,2 @@ +# ignore all files in the stew directory +stew/* diff --git a/zsh/.zshrc b/zsh/.zshrc index 3e237c0..a46705e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -83,16 +83,12 @@ fi whence -p direnv &>/dev/null && eval "$(direnv hook zsh)" # secrets -if [ -r $HOME/.env_secrets ]; then - export $(xargs < "$HOME/.env_secrets") +if [ -r "$HOME/.env_secrets" ]; then + set -a + source "$HOME/.env_secrets" + set +a fi -# for env in $HOME/.config/*/.env; do -# if [ -r "$env" ]; then -# export $(xargs < "$env") -# fi -# done - # command line completion autoload -U +X bashcompinit && bashcompinit autoload -Uz compinit && compinit