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}') }