summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 14:47:04 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 14:47:04 -0400
commita1a37ea6b8fa859963c8fe686d82ce2d008cefcc (patch)
tree88b04fdb838f7f7b20f1aabb1c78763fbd341fdf
parent9a3c1bf05ed68ca46863f05f24218cb0eaacc8f5 (diff)
.profile: set XDG variables
-rw-r--r--.profile6
1 files changed, 6 insertions, 0 deletions
diff --git a/.profile b/.profile
index e5e593f..c5846e0 100644
--- a/.profile
+++ b/.profile
@@ -10,6 +10,12 @@
# for ssh logins, install and configure the libpam-umask package.
umask 022
+[[ -n $XDG_DATA_HOME ]] || export XDG_DATA_HOME="$HOME/.local/share"
+[[ -n $XDG_CONFIG_HOME ]] || export XDG_CONFIG_HOME="$HOME/.config"
+[[ -n $XDG_DATA_DIRS ]] || export XDG_DATA_DIRS="/usr/local/share/:/usr/share"
+[[ -n $XDG_CONFIG_DIRS ]] || export XDG_CONFIG_DIRS="/etc/xdg"
+[[ -n $XDG_CACHE_HOME ]] || export XDG_CACHE_HOME="$HOME/.cache"
+
## Paths #############################################################
# Unix