aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/xdg
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-03-28 16:07:00 -0500
committerToby Vincent <tobyv13@gmail.com>2023-03-28 16:07:00 -0500
commit4309d46cd57cfb7a63a29403d8153ced39a32443 (patch)
tree12ef98a0d885afaa6ab4979b8b98fce3eb9d90ee /xdg
parent4d93300cd6bb36a69316ddd469da8a6be52fef6f (diff)
feat(xdg): move xdg related variables into environment.d
Diffstat (limited to 'xdg')
-rw-r--r--xdg/.config/environment.d/10-xdg_base_dir.conf6
-rw-r--r--xdg/.config/profile.d/10-xdg.sh3
2 files changed, 9 insertions, 0 deletions
diff --git a/xdg/.config/environment.d/10-xdg_base_dir.conf b/xdg/.config/environment.d/10-xdg_base_dir.conf
new file mode 100644
index 0000000..a687b55
--- /dev/null
+++ b/xdg/.config/environment.d/10-xdg_base_dir.conf
@@ -0,0 +1,6 @@
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
+XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache}
+XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
+XDG_STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
+XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}
+XDG_CONFIG_DIRS=${XDG_CONFIG_DIRS:-${XDG_CONFIG_DIRS:-/etc/xdg}}
diff --git a/xdg/.config/profile.d/10-xdg.sh b/xdg/.config/profile.d/10-xdg.sh
new file mode 100644
index 0000000..3edf889
--- /dev/null
+++ b/xdg/.config/profile.d/10-xdg.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+export PATH="$PATH:$HOME/.local/bin"