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

# Source system profile
source /etc/profile

# 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