@ 260802.2

260621.1 · 1c5b5c9f067464e39866718ec44934a17338ac00

shell: rejigger how we load environment variables

This makes it so my environment variables are always loaded, even in non-interactive zsh or bash scripts. Previously, we were jumping through hoops to load environment variables where they are needed in certain contexts. Subsequent commits should show how this helps.

reading declarations

Changes to .bashrc. All files

.bashrc

@@ -1,10 +1,7 @@ # Check for an interactive session [ -z "$PS1" ] && return -# Define aliases and generic shell variables.-[[ -f ~/.pathrc ]] && . ~/.pathrc-[[ -f ~/.aliasrc ]] && . ~/.aliasrc-[[ -f ~/.envrc ]] && . ~/.envrc+. "$HOME/.bashenv"  # Setup umask. # N.B. kent is a shared system, so use more restrictive umask.