about summary refs log tree commit diff stats
path: root/profile/xdg.sh
blob: ed58c4fb48b539725c931125903b77381f8f3239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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="source ${XDG_CONFIG_HOME:=$HOME/.config}/vim/vimrc"

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

# Notmuch
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:=$HOME/.config}/notmuch/config"