summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.profile7
1 files changed, 7 insertions, 0 deletions
diff --git a/.profile b/.profile
index b4d799a..3b9a239 100644
--- a/.profile
+++ b/.profile
@@ -23,6 +23,13 @@ if [ ! -d "${XDG_CONFIG_HOME}" ]; then
 	mkdir -p "${XDG_CONFIG_HOME}"
 	chmod 0755 "${XDG_CONFIG_HOME}"
 fi
+if [ -z "${XDG_DATA_HOME}" ]; then
+	export XDG_DATA_HOME="${HOME}/.local/share"
+fi
+if [ ! -d "${XDG_DATA_HOME}" ]; then
+	mkdir -p "${XDG_DATA_HOME}"
+	chmod 0755 "${XDG_DATA_HOME}"
+fi
 
 if [ -d "${HOME}/bin" ]; then
 	pathprepend "${HOME}/bin"