Added bash_profile. Loads an .env file that can be used to supply environment variables that are not to be included here.

This commit is contained in:
Gregor Bückendorf 2018-12-03 00:18:47 +01:00
parent 1b9707b764
commit 049ac212a2

19
.bash_profile Normal file
View file

@ -0,0 +1,19 @@
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
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