Add XDG Base Directory vars, refactor env var names and defs
This commit is contained in:
@@ -1,19 +1,31 @@
|
||||
# common/system env vars
|
||||
# default programs
|
||||
export EDITOR='vim' # TODO: update to nvim once configured
|
||||
|
||||
# env vars used for my organization structure
|
||||
export HOME_BOX="$HOME/dbox"
|
||||
export DIR_HOME_BOX="$HOME/dbox"
|
||||
export DIR_DEV="$HOME/dev"
|
||||
|
||||
# general targets for config/builds/etc
|
||||
export DIR_CONFIG="$HOME/.config"
|
||||
export XDG_CONFIG_HOME=$DIR_CONFIG
|
||||
# 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_BUILD="$DIR_LOCAL/build"
|
||||
export DIR_SCRIPTS="$DIR_LOCAL/scripts"
|
||||
export DIR_TMP="$DIR_LOCAL/tmp"
|
||||
|
||||
# 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?
|
||||
|
||||
# zsh
|
||||
export ZDOTDIR="$DIR_CONFIG/zsh" # may already be set, set anyway
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # may already be set, set anyway
|
||||
|
||||
# git
|
||||
export GIT_EDITOR="$EDITOR"
|
||||
|
||||
# clean-up of home dir
|
||||
export __CF_USER_TEXT_ENCODING="0x0:0x0"
|
||||
|
||||
|
Reference in New Issue
Block a user