about summary refs log tree commit diff stats
path: root/profile/xdg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'profile/xdg.sh')
-rw-r--r--profile/xdg.sh27
1 files changed, 27 insertions, 0 deletions
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 @@
1# XDG compliance (miscellaneous)
2
3# If an XDG-complaint variable makes more sense somewhere else, it'll be
4# moved there (e.g., HISTFILE is in history.bash). So variables might
5# move /out/ of this directory, but they probably won't move /in/.
6
7# Readline
8export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
9
10# Less
11export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey
12export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
13mkdir -p "$XDG_CACHE_HOME"/less
14
15# Vim
16export VIMINIT="let \$MYVIMRC=\"$XDG_CONFIG_HOME/vim/vimrc\" | source \$MYVIMRC"
17
18# Weechat
19export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"
20
21# Lynx
22export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg"
23
24# Xorg
25export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
26export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
27export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"