From 2d5351fbc410592cdc10f003f5132a6e44f4187f Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Tue, 29 Oct 2024 20:20:45 -0500 Subject: [PATCH] add env source --- modules/shell/common.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/shell/common.sh b/modules/shell/common.sh index 958133a..018075f 100644 --- a/modules/shell/common.sh +++ b/modules/shell/common.sh @@ -1,4 +1,11 @@ -# basics +# Check if ~/.config/environment exists and source all files within it +if [ -d "$HOME/.config/environment" ]; then + for file in "$HOME/.config/environment/"*; do + [ -r "$file" ] && . "$file" + done +fi + +# Basics htop_psg () { htop -p $(psg $1 | awk '{r=r s $2;s=","} END{print r}') }