about summary refs log tree commit diff stats
path: root/profile
diff options
context:
space:
mode:
authorCase Duckworth2022-03-13 05:32:01 +0000
committerCase Duckworth2022-03-13 05:32:01 +0000
commitebc1695f4cdccc1813d94177216140265e81ca2b (patch)
treef561a86f03bb4cb5e75bffb516b1af0a04cb361f /profile
parentSilence keychain (diff)
downloadetc-ebc1695f4cdccc1813d94177216140265e81ca2b.tar.gz
etc-ebc1695f4cdccc1813d94177216140265e81ca2b.zip
Source system profile
Diffstat (limited to 'profile')
-rw-r--r--profile/profile9
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
5source /etc/profile
6
4# XDG directories 7# XDG directories
5export XDG_CONFIG_HOME="$HOME/etc" 8export XDG_CONFIG_HOME="$HOME/etc"
6export XDG_CACHE_HOME="$HOME/var/cache" 9export 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
13if [ -d "$XDG_CONFIG_HOME/profile" ]; then 16if [ -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
17fi 20fi