aboutsummaryrefslogblamecommitdiff
path: root/dot_config/sh/01_environment.d
blob: b84226f3e0734a5fdea042bacae5ba809763cd5b (plain) (tree)
1
2
3
4
5
6
7
8

         



                                                          

        
#!/bin/sh

for f in "${HOME}/.config/environment.d/"*; do
    . "$f"
    sed -n '/^[^#]/ s/=.*//p' "$f" | while read -r VAR; do
        export "${VAR?}"
    done
done