From e292eb508413b9174684a8e75c93474a7f5351ee Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 23 Aug 2021 23:07:31 -0500 Subject: Initial --- profile/xdg.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 profile/xdg.sh (limited to 'profile/xdg.sh') diff --git a/profile/xdg.sh b/profile/xdg.sh new file mode 100644 index 0000000..caa1a9a --- /dev/null +++ b/profile/xdg.sh @@ -0,0 +1,27 @@ +# XDG compliance (miscellaneous) + +# If an XDG-complaint variable makes more sense somewhere else, it'll be +# moved there (e.g., HISTFILE is in history.bash). So variables might +# move /out/ of this directory, but they probably won't move /in/. + +# Readline +export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc + +# Less +export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey +export LESSHISTFILE="$XDG_CACHE_HOME"/less/history +mkdir -p "$XDG_CACHE_HOME"/less + +# Vim +export VIMINIT="let \$MYVIMRC=\"$XDG_CONFIG_HOME/vim/vimrc\" | source \$MYVIMRC" + +# Weechat +export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" + +# Lynx +export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg" + +# Xorg +export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc" +export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" -- cgit 1.4.1-21-gabe81