zsh: ignore files, improve secrets mgmt

This commit is contained in:
Jason Swank
2026-01-04 22:35:40 -05:00
parent 19ced517f3
commit da19218b33
2 changed files with 6 additions and 8 deletions

2
zsh/.local/share/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
# ignore all files in the stew directory
stew/*

View File

@@ -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