# default programs
export BROWSER='brave'
export EDITOR='nvim'
export TERMINAL='kitty'

# env vars used for my organization structure
export DIR_HOME_BOX="$HOME/dbox"
export DIR_INBOX="$DIR_HOME_BOX/inbox"
export DIR_NOTES="$DIR_HOME_BOX/notes"
export DIR_MUSIC="$DIR_HOME_BOX/music/listen"
export DIR_DEV="$HOME/dev"
export DIR_GIT_PROJECTS="$DIR_DEV/git"

# util dirs; do not change without checking impact on xdg base dirs
export DIR_LOCAL="$HOME/.local"
export DIR_BIN="$DIR_LOCAL/bin"
export DIR_SCRIPTS="$DIR_LOCAL/scripts"
export DIR_USER_OPT="$HOME/opt"
export DIR_USER_LIB="$DIR_LOCAL/lib"

# xdg base directory vars
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$DIR_LOCAL/share"
export XDG_STATE_HOME="$DIR_LOCAL/state"
export XDG_DATA_DIRS="/usr/local/share:/usr/share"
#export XDG_CONFIG_DIRS="/etc/xdg" # TODO: does this work on macOS?

# directory for theme/style stuff
export DIR_THEME_SETTINGS="$XDG_CONFIG_HOME/zz-this-box/themes"
export DEFAULT_THEME_NAME="gruvbox"

# ksh/oksh
export ENV="$HOME/.config/ksh/kshrc" # ENV var should be ignored by zsh and bash

# zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # may already be set, set anyway

# git
export GIT_EDITOR="$EDITOR"

# obsidian
export OBSIDIAN_WORKSPACES_TO_CONFIGURE="$DIR_NOTES," # ,-delimitted list of dirs

# language and tool vars
export MISE_GO_VERSION="1.25.1"
export MISE_PYTHON_VERSION="3.13.7"
export MISE_RUBY_VERSION="3.4.7"

# reaper
export DIR_REAPER_PORTABLE_SHARED="$DIR_USER_OPT/reaper-portable/shared"
export DIR_REAPER_PORTABLE_LINUX="$DIR_USER_OPT/reaper-portable/linux"
export DIR_REAPER_PORTABLE_MACOS="$DIR_USER_OPT/reaper-portable/macos"

# xdg spec and/or clean-up of home dir
MAC_USER_ID=`id -u` export __CF_USER_TEXT_ENCODING="`printf '0x%x' $MAC_USER_ID`:0x0:0x0"
export ANDROID_USER_HOME="$XDG_DATA_HOME/android"
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME/bundle"
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME/bundle"
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME/bundle"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export HISTFILE="$XDG_STATE_HOME/sh_history"
export IRBRC="$XDG_CONFIG_HOME/irb/irbrc"
export LESSHISTFILE="$XDG_STATE_HOME/lesshst"
export LESSKEYIN="$XDG_CONFIG_HOME/lesskey"
export NPM_CONFIG_CACHE="$XDG_CACHE_HOME/npm"
export NPM_CONFIG_INIT_MODULE="$XDG_CONFIG_HOME/npm/config/npm-init.js"
export NPM_CONFIG_TMP="$XDG_RUNTIME_DIR/npm"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export PYTHON_HISTORY="$XDG_STATE_HOME/python_history"
export SHELL_SESSIONS_DISABLE=1 # this may only apply for zsh on macOS

