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.sh55
1 files changed, 47 insertions, 8 deletions
diff --git a/profile/xdg.sh b/profile/xdg.sh index e11c5df..a4e395f 100644 --- a/profile/xdg.sh +++ b/profile/xdg.sh
@@ -4,15 +4,17 @@
4# moved there (e.g., HISTFILE is in history.bash). So variables might 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/. 5# move /out/ of this directory, but they probably won't move /in/.
6 6
7# See also [[https://github.com/b3nj5m1n/xdg-ninja][xdg-ninja]]. 7# See also https://github.com/b3nj5m1n/xdg-ninja,
8# https://wiki.archlinux.org/title/XDG_Base_Directory#Support
8 9
9# Readline 10# Readline
10export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc 11export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
12export RLWRAP_HOME="$XDG_DATA_HOME/rlwrap"
11 13
12# Less 14# Less
13export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey 15export LESSKEY="$XDG_CONFIG_HOME/less/lesskey"
14export LESSHISTFILE="$XDG_CACHE_HOME"/less/history 16export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
15mkdir -p "$XDG_CACHE_HOME"/less 17mkdir -p "$XDG_CACHE_HOME/less"
16 18
17# Vim 19# Vim
18export VIMINIT="source ${XDG_CONFIG_HOME:=$HOME/.config}/vim/vimrc" 20export VIMINIT="source ${XDG_CONFIG_HOME:=$HOME/.config}/vim/vimrc"
@@ -27,9 +29,14 @@ export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg"
27export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME}" 29export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME}"
28export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc" 30export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
29export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" 31export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
32export USERXSESSION="$XDG_CACHE_HOME/X11/xsession"
33export ALTUSERXSESSION="$XDG_CACHE_HOME/X11/Xsession"
34export ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors"
30 35
31# Notmuch 36
32export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:=$HOME/.config}/notmuch/config" 37
38# Notmuch -- https://notmuchmail.org/pipermail/notmuch/2011/007007.html
39export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:=$HOME/.config}/notmuch/default/config"
33 40
34# GNUPG 41# GNUPG
35export GNUPGHOME="$XDG_DATA_HOME/gnupg" 42export GNUPGHOME="$XDG_DATA_HOME/gnupg"
@@ -39,7 +46,39 @@ export ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority"
39 46
40# mbsync (requires alias) 47# mbsync (requires alias)
41export MBSYNC_CONFIG_HOME="$XDG_CONFIG_HOME/isync/mbsyncrc" 48export MBSYNC_CONFIG_HOME="$XDG_CONFIG_HOME/isync/mbsyncrc"
42alias mbsync='mbsync -c "$MBSYNC_CONFIG_HOME"' 49alias mbsync='command mbsync -c "$MBSYNC_CONFIG_HOME"'
43 50
44# npm 51# npm
45export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" 52export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
53
54# bash-complete
55export BASH_COMPLETION_USER_FILE="$XDG_CONFIG_HOME/bash/completion"
56
57# aspell
58ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf"
59ASPELL_CONF="$ASPELL_CONF; personal $XDG_CONFIG_HOME/aspell/en.pws"
60ASPELL_CONF="$ASPELL_CONF; repl $XDG_CONFIG_HOME/aspell/en.prepl"
61mkdir -p "$XDG_CONFIG_HOME/aspell"
62export ASPELL_CONF
63
64# Xcompose
65export XCOMPOSEFILE="$XDG_CONFIG_HOME/xorg/xcompose"
66export XCOMPOSECACHE="$XDG_CACHE_HOME/xorg/xcompose"
67
68# sqlite
69export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
70alias sqlite3='sqlite3 -init "$XDG_CONFIG_HOME/sqlite3/sqliterc"'
71
72# python
73export PYTHONSTARTUPFILE="$XDG_CONFIG_HOME/python/startup"
74export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME/python"
75export PYTHON_EGG_CACHE="$XDG_CACHE_HOME/python/eggs"
76export PYTHONUSERBASE="$XDG_DATA_HOME/python"
77
78# wget
79export WGETRC="$XDG_CONFIG_HOME/wget/config"
80mkdir -p "$XDG_CONFIG_HOME/wget"
81alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
82
83# dvdcss
84export DVDCSS_HOME="$XDG_CACHE_HOME/dvdcss"