From dae19a88b4184685a49b56cb91ca3005cc871a1c Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Sat, 5 Apr 2025 16:37:09 -0400 Subject: [PATCH] Add script to symlink to old paths for legacy support --- xdg/.local/bin/enable-xdg-legacy-support | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 xdg/.local/bin/enable-xdg-legacy-support diff --git a/xdg/.local/bin/enable-xdg-legacy-support b/xdg/.local/bin/enable-xdg-legacy-support new file mode 100755 index 0000000..16299a0 --- /dev/null +++ b/xdg/.local/bin/enable-xdg-legacy-support @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# For older systems that don't support newer versions of programs that may +# support XDG config paths natively we have to symlink to the new paths from +# the expected locations of the older paths. + +# This can also be used to support migrations from systems before we started XDGifying + +ln -s "${XDG_CONFIG_HOME}/screen/screenrc" "${HOME}/.screenrc" +ln -s "${XDG_DATA_HOME}/.gnupg" "${HOME}/.gnupg" +ln -s "${XDG_DATA_HOME}/mysql_history" "${HOME}/.mysql_history" +ln -s "${XDG_CONFIG_HOME}/readline/inputrc" "${HOME}/.inputrc" +ln -s "${XDG_CONFIG_HOME}/irb/irbc" "${HOME}/.irbrc" +ln -s "${XDG_CONFIG_HOME}/kube/config" "${HOME}/.kubeconfig"