From ec6bec1983a8ecd2dc9f3fa075964be64cad3981 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 27 Feb 2018 22:55:46 +0100 Subject: Modularize environment variables --- sh/.profile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sh/.profile') 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 ] -- cgit v1.2.1