Compare commits

..

2 Commits

Author SHA1 Message Date
anmiller
185824f6b8 Add script to symlink to old paths for legacy support 2025-03-21 18:02:40 +00:00
anmiller
16fdb25994 XDGify kubernetes config 2025-03-21 17:49:25 +00:00
2 changed files with 16 additions and 0 deletions

View File

@ -9,3 +9,6 @@ export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export MYSQL_HISTFILE="$XDG_DATA_HOME"/mysql_history export MYSQL_HISTFILE="$XDG_DATA_HOME"/mysql_history
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
export IRBRC="$XDG_CONFIG_HOME/irb/irbrc" export IRBRC="$XDG_CONFIG_HOME/irb/irbrc"
export KUBECONFIG="${XDG_CONFIG_HOME}/kube/config"
mkdir -p "$(dirname ${KUBE_CONFIG})"

View File

@ -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"