.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
|
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
|
||||||
|
. "$FILE"
|
||||||
|
done
|
||||||
set +a
|
set +a
|
||||||
fi
|
|
||||||
|
|
0
.environment.d/.gitinclude
Normal file
0
.environment.d/.gitinclude
Normal file
Loading…
Add table
Add a link
Reference in a new issue