-### exports for new non-interactive shell
-if [[ $SHLVL == 1 ]] {
- ## lang
- export CHARSET=UTF-8
- export LANG="en_US.UTF-8"
- export LC_CTYPE="$LANG"
-
- ## path
- # /usr/{pkg,local,games} are unix/bsdisms
- typeset -U PATH path
- path=({~/,/,/usr/}sbin {~/,/,/usr/}bin /usr/pkg/{s,}bin /usr/X11R{7,6}/bin
- /usr/local/{s,}bin /usr/games "${path[@]}")
- export PATH
- typeset -U _sev_backup_path
- _sev_backup_path=("${path[@]}")
- typeset -U FPATH fpath
- fpath=(${ZDOTDIR:-$HOME/.zsh}/functions/{*,Completions/*}(N) "${fpath[@]}")
- export FPATH
-
- ## xdg
- export XDG_CONFIG_HOME=~/etc
- export XDG_CONFIG_DIRS=~/.config:/usr/pkg/etc/xdg:/usr/local/etc/xdg:/etc/xdg
- export XDG_DATA_HOME=~/share
- export XDG_DATA_DIRS=~/.local/share:/usr/pkg/share:/usr/local/share:/usr/share
- export XDG_CACHE_HOME=~/tmp
- export XDG_RUNTIME_DIR=~/tmp