diff options
Diffstat (limited to 'profile/xdg.sh')
-rw-r--r-- | profile/xdg.sh | 27 |
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 | ||
8 | export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc | ||
9 | |||
10 | # Less | ||
11 | export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey | ||
12 | export LESSHISTFILE="$XDG_CACHE_HOME"/less/history | ||
13 | mkdir -p "$XDG_CACHE_HOME"/less | ||
14 | |||
15 | # Vim | ||
16 | export VIMINIT="let \$MYVIMRC=\"$XDG_CONFIG_HOME/vim/vimrc\" | source \$MYVIMRC" | ||
17 | |||
18 | # Weechat | ||
19 | export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" | ||
20 | |||
21 | # Lynx | ||
22 | export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg" | ||
23 | |||
24 | # Xorg | ||
25 | export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc" | ||
26 | export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" | ||
27 | export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" | ||