.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:
parent
a60fb1e5e3
commit
5555c9f9b8
2 changed files with 9 additions and 8 deletions
|
@ -9,11 +9,12 @@ fi
|
|||
PATH=$PATH:$HOME/.local/bin:$HOME/bin
|
||||
export PATH
|
||||
|
||||
# Export environment variables found in ~/.env . This file should contain
|
||||
# environment variables that are either specific to a machine or can not be
|
||||
# included in the dotfiles repository for security or privacy reasons.
|
||||
if [ -f ~/.env ]; then
|
||||
set -a
|
||||
. ~/.env
|
||||
set +a
|
||||
fi
|
||||
# Export environment variables found in ~/.environment.d/ . Adding files in a
|
||||
# directory makes it easier to supply environment variables that are either
|
||||
# specific to a machine or can not be included in the dotfiles repository for
|
||||
# security or privacy reasons.
|
||||
set -a
|
||||
for file in ~/.environment.d/*.env; do
|
||||
. "$FILE"
|
||||
done
|
||||
set +a
|
||||
|
|
0
.environment.d/.gitinclude
Normal file
0
.environment.d/.gitinclude
Normal file
Loading…
Add table
Add a link
Reference in a new issue