summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2025-05-14 19:31:20 +0200
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2025-05-14 19:31:20 +0200
commite81b961dec1cf4b23f71c1a34b2d75414a7f44a9 (patch)
tree1b1c66aa0204813c1158ba09d25cd849d6d00cb9
parentfish: also domicile rustup in ~/.local/rust (diff)
sh: add xdg plugin
can't believe I have to do this but... in short, a bunch of programs check for whether XDG_* is set in order to activate their XDG compliance so even if you want the defaults, you're better off setting them...
-rw-r--r--dot_local/share/sh/xdg3
1 files changed, 3 insertions, 0 deletions
diff --git a/dot_local/share/sh/xdg b/dot_local/share/sh/xdg
new file mode 100644
index 0000000..68c4a54
--- /dev/null
+++ b/dot_local/share/sh/xdg
@@ -0,0 +1,3 @@
+[ -z "$XDG_DATA_HOME" ] || export XDG_DATA_HOME=~/.local/share
+[ -z "$XDG_CONFIG_HOME" ] || export XDG_CONFIG_HOME=~/.config
+[ -z "$XDG_STATE_HOME" ] || export XDG_STATE_HOME=~/.local/state