.bash_profile: The environment is loaded from .environment.d now. This will make it easier to include save parts of the environment into the repo later on.

This commit is contained in:
Gregor Bückendorf 2018-12-03 13:51:53 +01:00
parent a60fb1e5e3
commit 5555c9f9b8
2 changed files with 9 additions and 8 deletions

View file

@ -9,11 +9,12 @@ fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH export PATH
# Export environment variables found in ~/.env . This file should contain # Export environment variables found in ~/.environment.d/ . Adding files in a
# environment variables that are either specific to a machine or can not be # directory makes it easier to supply environment variables that are either
# included in the dotfiles repository for security or privacy reasons. # specific to a machine or can not be included in the dotfiles repository for
if [ -f ~/.env ]; then # security or privacy reasons.
set -a set -a
. ~/.env for file in ~/.environment.d/*.env; do
set +a . "$FILE"
fi done
set +a

View file