about summary refs log tree commit diff stats
path: root/profile/profile
blob: 7a86c76aebce5764f9983c4cab41198ba12755d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ~/.profile -*- sh -*-
# vim: ft=sh

# XDG directories
export XDG_CONFIG_HOME="$HOME/etc"
export XDG_CACHE_HOME="$HOME/var/cache"
export XDG_DATA_HOME="$HOME/usr/share"

export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}"

# source files in $XDG_CONFIG_HOME/profile
if [ -d "$XDG_CONFIG_HOME/profile" ]; then
		for file in "$XDG_CONFIG_HOME"/profile/*.sh; do
				[ -r "$file" ] && . "$file"
		done
fi