diff options
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 |