From 0dc520ec4367e73849b667ab2efde950c87d18bf Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 5 Jan 2024 15:13:55 -0500 Subject: Improve environment var handling for shells and systemd --- dot_config/sh/01_environment.d | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 dot_config/sh/01_environment.d (limited to 'dot_config/sh/01_environment.d') diff --git a/dot_config/sh/01_environment.d b/dot_config/sh/01_environment.d new file mode 100644 index 0000000..eea2917 --- /dev/null +++ b/dot_config/sh/01_environment.d @@ -0,0 +1,8 @@ +#!/bin/sh + +for f in ${HOME}/.config/environment.d/*; do + . $f + for VAR in $(sed -n '/^[^#]/ s/=.*//p' $f); do + export $VAR + done +done -- cgit v1.2.3