diff options
author | Case Duckworth | 2022-03-13 05:32:01 +0000 |
---|---|---|
committer | Case Duckworth | 2022-03-13 05:32:01 +0000 |
commit | ebc1695f4cdccc1813d94177216140265e81ca2b (patch) | |
tree | f561a86f03bb4cb5e75bffb516b1af0a04cb361f /profile | |
parent | Silence keychain (diff) | |
download | etc-ebc1695f4cdccc1813d94177216140265e81ca2b.tar.gz etc-ebc1695f4cdccc1813d94177216140265e81ca2b.zip |
Source system profile
Diffstat (limited to 'profile')
-rw-r--r-- | profile/profile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/profile/profile b/profile/profile index 7a86c76..121615f 100644 --- a/profile/profile +++ b/profile/profile | |||
@@ -1,6 +1,9 @@ | |||
1 | # ~/.profile -*- sh -*- | 1 | # ~/.profile -*- sh -*- |
2 | # vim: ft=sh | 2 | # vim: ft=sh |
3 | 3 | ||
4 | # Source system profile | ||
5 | source /etc/profile | ||
6 | |||
4 | # XDG directories | 7 | # XDG directories |
5 | export XDG_CONFIG_HOME="$HOME/etc" | 8 | export XDG_CONFIG_HOME="$HOME/etc" |
6 | export XDG_CACHE_HOME="$HOME/var/cache" | 9 | export XDG_CACHE_HOME="$HOME/var/cache" |
@@ -11,7 +14,7 @@ export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}" | |||
11 | 14 | ||
12 | # source files in $XDG_CONFIG_HOME/profile | 15 | # source files in $XDG_CONFIG_HOME/profile |
13 | if [ -d "$XDG_CONFIG_HOME/profile" ]; then | 16 | if [ -d "$XDG_CONFIG_HOME/profile" ]; then |
14 | for file in "$XDG_CONFIG_HOME"/profile/*.sh; do | 17 | for file in "$XDG_CONFIG_HOME"/profile/*.sh; do |
15 | [ -r "$file" ] && . "$file" | 18 | [ -r "$file" ] && . "$file" |
16 | done | 19 | done |
17 | fi | 20 | fi |