unsetopt GLOBAL_RCS # disable global zsh config; we'll handle it ourselves source $(cd ${${(%):-%x}:A:h}/../.. && pwd -P)/env # Move ZDOTDIR from $HOME to reduce dotfile pollution. export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export ZGEN_SOURCE="$XDG_CACHE_HOME/zgen" # paths typeset -gU cdpath fpath mailpath path path=( $XDG_BIN_HOME $DOTFILES/bin $DOTFILES_DATA/*.topic/bin(N) $path ) fpath=( $ZDOTDIR/functions $fpath ) # envvars export LANG=${LANG:-en_US.UTF-8} export PAGER=less export LESS='-R -i -w -M -z-4' export LESSHISTFILE="$XDG_DATA_HOME/lesshst" export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store" # initialize enabled topics _load_all env.zsh