diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-02-27 22:55:46 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2018-02-27 22:55:46 +0100 |
commit | ec6bec1983a8ecd2dc9f3fa075964be64cad3981 (patch) | |
tree | 4155efe0c5915dbb058e3abe1399ff719ddcd216 /sh/.profile | |
parent | d5ff981fa61890c3df2997fd35f189e409476d0d (diff) | |
download | dotfiles-ec6bec1983a8ecd2dc9f3fa075964be64cad3981.tar.gz dotfiles-ec6bec1983a8ecd2dc9f3fa075964be64cad3981.tar.bz2 |
Modularize environment variables
Diffstat (limited to 'sh/.profile')
-rw-r--r-- | sh/.profile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sh/.profile b/sh/.profile index 399a6ba..36852bc 100644 --- a/sh/.profile +++ b/sh/.profile @@ -1,6 +1,10 @@ -if [ -f "${HOME}/.config/sh/environment.sh" ] +if [ -d "${HOME}/.config/env" ] then - . "${HOME}/.config/sh/environment.sh" + ENV_FILES=`find "${HOME}/.config/env" -type f,l -name "*.sh" | sort` + for ENV_FILE in ${ENV_FILES} + do + . ${ENV_FILE} + done fi if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] |