2022-07-20 20:04:11 -04:00
|
|
|
# path (include ~/.bin and ~/.local/bin)
|
|
|
|
PATH OVERRIDE={{ .chezmoi.homeDir }}/.bin:{{ .chezmoi.homeDir }}/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin
|
2021-02-15 20:53:16 -05:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
# default directories
|
2022-05-20 15:41:17 -04:00
|
|
|
XDG_CONFIG_HOME DEFAULT={{ .chezmoi.homeDir }}/.config
|
|
|
|
XDG_CACHE_HOME DEFAULT={{ .chezmoi.homeDir }}/.cache
|
|
|
|
XDG_DATA_HOME DEFAULT={{ .chezmoi.homeDir }}/.local/share
|
|
|
|
XDG_RUNTIME_DIR DEFAULT=/run/user/{{ output "id" "-u" | trim }}
|
2021-02-15 20:53:16 -05:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
# super common tools
|
|
|
|
PAGER DEFAULT=less
|
|
|
|
INPUTRC DEFAULT=${XDG_CONFIG_HOME}/readline/inputrc
|
|
|
|
LESSKEY DEFAULT=${XDG_CONFIG_HOME}/less/lesskey
|
|
|
|
LESSHISTFILE DEFAULT=-
|
|
|
|
GNUPGHOME DEFAULT=${XDG_CONFIG_HOME}/gnupg
|
|
|
|
EDITOR DEFAULT=vim
|
|
|
|
|
|
|
|
# AWS (all will suffer...)
|
2022-04-01 16:49:31 -04:00
|
|
|
AWS_SHARED_CREDENTIALS_FILE DEFAULT=${XDG_CONFIG_HOME}/aws/credentials
|
|
|
|
AWS_CONFIG_FILE DEFAULT=${XDG_CONFIG_HOME}/aws/config
|
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
# cache compiled bits; highly recommended for makepkg
|
|
|
|
CCACHE_CONFIGPATH DEFAULT=${XDG_CONFIG_HOME}/ccache.config
|
|
|
|
CCACHE_DIR DEFAULT=${XDG_CACHE_HOME}/ccache
|
|
|
|
|
|
|
|
# REPL stuff
|
|
|
|
NODE_REPL_HISTORY DEFAULT=${XDG_DATA_HOME}/npm/node_repl.log
|
|
|
|
PYTHONSTARTUP DEFAULT=${XDG_CONFIG_HOME}/python/startup.py
|
|
|
|
|
|
|
|
# shell stuff
|
|
|
|
HISTFILE DEFAULT=${XDG_DATA_HOME}/zsh_history.log
|
|
|
|
HISTSIZE DEFAULT=1000000
|
|
|
|
SAVEHIST DEFAULT=1000000
|
|
|
|
ZDOTDIR DEFAULT=${XDG_CONFIG_HOME}/zsh
|
|
|
|
|
|
|
|
# X11 forwarding (required even without a full X11 server)
|
|
|
|
ICEAUTHORITY DEFAULT=${XDG_CACHE_DIR}/ICEauthority
|
|
|
|
XAUTHORITY DEFAULT=${XDG_RUNTIME_DIR}/Xauthority
|
|
|
|
|
|
|
|
{{ if .features.ansible -}}
|
|
|
|
# ansible
|
2021-06-10 22:57:43 -04:00
|
|
|
ANSIBLE_VAULT_PASSWORD_FILE DEFAULT=@{HOME}/.bin/ansible-vault-pass-client
|
|
|
|
ANSIBLE_VAULT_IDENTITY DEFAULT=ansible/vault
|
2022-07-20 20:04:11 -04:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ if .development.emacs -}}
|
|
|
|
# emacs
|
|
|
|
MU_HOME DEFAULT=${XDG_CACHE_HOME}/mu
|
|
|
|
MAILDIR DEFAULT=/mnt/data/Mail
|
2021-02-15 20:53:16 -05:00
|
|
|
ASPELL_CONF DEFAULT="per-conf ${XDG_CONFIG_HOME}/aspell/aspell.conf; personal ${XDG_CONFIG_HOME}/aspell/en.pws; repl ${XDG_CONFIG_HOME}/aspell/en.prepl"
|
2022-07-20 20:04:11 -04:00
|
|
|
{{- end }}
|
2021-10-19 16:05:16 -04:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
{{ if .development.ruby -}}
|
|
|
|
# ruby development
|
|
|
|
RBENV_ROOT DEFAULT=${XDG_DATA_HOME}/rbenv
|
2021-10-16 13:15:45 -04:00
|
|
|
BUNDLE_USER_CONFIG DEFAULT=${XDG_CONFIG_HOME}/bundle
|
|
|
|
BUNDLE_USER_CACHE DEFAULT=${XDG_CACHE_HOME}/bundle
|
|
|
|
BUNDLE_USER_PLUGIN DEFAULT=${XDG_DATA_HOME}/bundle
|
2021-04-25 14:38:15 -04:00
|
|
|
GEM_HOME DEFAULT=${XDG_DATA_HOME}/gem
|
|
|
|
GEM_SPEC_CACHE DEFAULT=${XDG_CACHE_HOME}/gem
|
2022-07-20 20:04:11 -04:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ if .development.rust -}}
|
|
|
|
# rust development
|
|
|
|
CARGO_HOME DEFAULT=${XDG_DATA_HOME}/cargo
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ if .development.clojure -}}
|
|
|
|
# clojure development
|
2021-03-08 18:04:13 -05:00
|
|
|
LEIN_HOME DEFAULT=${XDG_DATA_HOME}/lein
|
2022-07-20 20:04:11 -04:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ if .development.matlab -}}
|
|
|
|
# matlab development (if I must...)
|
2021-02-15 20:53:16 -05:00
|
|
|
MATLAB_PREFDIR DEFAULT=${XDG_CONFIG_HOME}/matlab
|
|
|
|
MATLAB_LOG_DIR DEFAULT=${XDG_DATA_HOME}/matlab/log
|
2022-07-20 20:04:11 -04:00
|
|
|
# required for matlab's silly GUI to work with xmonad
|
|
|
|
_JAVA_AWT_WM_NONREPARENTING DEFAULT=1
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ if .development.r -}}
|
|
|
|
# R development
|
2021-02-15 20:53:16 -05:00
|
|
|
R_ENVIRON_USER DEFAULT=${XDG_CONFIG_HOME}/r/Renviron
|
2022-07-20 20:04:11 -04:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ if .development.latex -}}
|
|
|
|
# LaTeX writing...I mean...development
|
2021-02-15 20:53:16 -05:00
|
|
|
TEXMFHOME DEFAULT=${XDG_CONFIG_HOME}/texmf
|
2021-06-10 23:12:27 -04:00
|
|
|
{{- end }}
|
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
{{ if .development.github -}}
|
|
|
|
# Github development (for READMEs)
|
|
|
|
GRIPHOME DEFAULT=${XDG_CONFIG_HOME}/grip
|
|
|
|
{{- end }}
|
2021-02-15 20:53:16 -05:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
{{ if .development.conda -}}
|
|
|
|
# conda development
|
|
|
|
CONDARC DEFAULT=${XDG_CONFIG_HOME}/conda/condarc
|
2022-02-17 22:43:25 -05:00
|
|
|
{{- end }}
|
2021-02-15 20:53:16 -05:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
{{ if .development.python -}}
|
|
|
|
# python development
|
|
|
|
IPYTHONDIR DEFAULT=${XDG_CONFIG_HOME}/ipython
|
|
|
|
PYLINTHOME DEFAULT=${XDG_CACHE_HOME}/pylint
|
|
|
|
PYENV_ROOT DEFAULT=${XDG_DATA_HOME}/pyenv
|
|
|
|
{{- end }}
|
2021-02-15 20:53:16 -05:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
{{ if .desktop -}}
|
|
|
|
# gnucash
|
|
|
|
AQBANKING_HOME DEFAULT=${XDG_CONFIG_HOME}/aqbanking
|
2021-02-15 20:53:16 -05:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
# seafile
|
|
|
|
CCNET_CONF_DIR DEFAULT=${XDG_CONFIG_HOME}/ccnet
|
|
|
|
|
|
|
|
# gtk2
|
|
|
|
GTK2_RC_FILES DEFAULT=${XDG_CONFIG_HOME}/gtk-2.0/gtkrc
|
2021-06-11 00:07:06 -04:00
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
# xft fonts
|
2021-02-15 20:53:16 -05:00
|
|
|
GDK_USE_XFT DEFAULT=1
|
|
|
|
QT_XFT DEFAULT=true
|
2022-07-20 20:04:11 -04:00
|
|
|
|
|
|
|
# QT (which should look like gtk)
|
2021-02-15 20:53:16 -05:00
|
|
|
QT_QPA_PLATFORMTHEME DEFAULT=qt5ct
|
|
|
|
|
2022-07-20 20:04:11 -04:00
|
|
|
# libreoffice?
|
|
|
|
SAL_USE_VCLPLUGIN DEFAULT=gtk
|
|
|
|
|
|
|
|
# store passwords in gnupg directory (which is then encrypted)
|
|
|
|
PASSWORD_STORE_DIR DEFAULT=${GNUPGHOME}/pass
|
|
|
|
|
|
|
|
# X11
|
|
|
|
XINITRC DEFAULT=${XDG_CONFIG_HOME}/X11/xinitrc
|
|
|
|
|
|
|
|
# xmonad (and haskell)
|
|
|
|
STACK_ROOT DEFAULT=${XDG_DATA_HOME}/stack
|
|
|
|
XMONAD_CACHE_DIR DEFAULT=${XDG_CACHE_HOME}/xmonad
|
|
|
|
XMONAD_CONFIG_DIR DEFAULT=${XDG_CONFIG_HOME}/xmonad
|
|
|
|
XMONAD_DATA_DIR DEFAULT=${XDG_DATA_HOME}/xmonad
|
|
|
|
{{- end }}
|