-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
60 lines (46 loc) · 1.78 KB
/
.profile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#----------------------------
# XDG compliance
#----------------------------
# The XDG paths themselves
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_DATA_DIRS="/usr/local/share:/usr/share:$HOME/.local/share/applications/"
export XDG_CONFIG_DIRS=/etc/xdg
# History files
export HISTFILE="${XDG_STATE_HOME}/bash/history"
export LESSHISTFILE="${XDG_STATE_HOME}/less/history"
export SQLITE_HISTORY="${XDG_STATE_HOME}/sqlite/history"
export NODE_REPL_HISTORY="${XDG_STATE_HOME}/node/history"
export PYTHON_HISTORY="${XDG_STATE_HOME}/python/history"
# Nix
export NIX_PATH="${XDG_STATE_HOME}/nix/defexpr/channels:${NIX_PATH}"
# Haskell
export GHCUP_USE_XDG_DIRS=true
export CABAL_CONFIG="$XDG_CONFIG_HOME"/cabal/config
export CABAL_DIR="$XDG_DATA_HOME"/cabal
export STACK_XDG=1
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter
# readline
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
# TeX
export TEXMFHOME="$XDG_DATA_HOME/texmf"
export TEXMFVAR="$XDG_CACHE_HOME/texlive/texmf-var"
export TEXMFCONFIG="$XDG_CONFIG_HOME/texlive/texmf-config"
export W3M_DIR="$XDG_DATA_HOME"/w3m
# pass
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
# X11
export XCURSOR_PATH=/usr/share/icons:$XDG_DATA_HOME/icons
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/Xcompose
export XCOMPOSECACHE="$XDG_CACHE_HOME"/X11/Xcompose
#----------------------------
# For Package Managers
#----------------------------
# Nix needs this to find the proper locale
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive