Add XDG Base Directory vars, refactor env var names and defs
This commit is contained in:
		@@ -16,8 +16,8 @@ alias git-push-to-develop='git branch -D develop; git checkout -b develop; git p
 | 
			
		||||
alias gpdev='git-push-to-develop'
 | 
			
		||||
 | 
			
		||||
# misc shortcuts
 | 
			
		||||
alias journal="cd $HOME_BOX; $EDITOR .current-journal"
 | 
			
		||||
alias kra="cd $HOME_BOX/process/kra; open .current_kra"
 | 
			
		||||
alias journal="cd $DIR_HOME_BOX; $EDITOR .current-journal"
 | 
			
		||||
alias kra="cd $DIR_HOME_BOX/process/kra; open .current_kra"
 | 
			
		||||
alias gll="cd $DIR_DEV/git/lampo/gitlab"
 | 
			
		||||
alias bet='bundle exec rspec'
 | 
			
		||||
alias bel='bundle exec standardrb'
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
# life system shortcuts
 | 
			
		||||
alias life-system="cd $HOME_BOX/life/system; clear; ls"
 | 
			
		||||
alias goals="clear; sed -n 2,7p $HOME_BOX/life/system/direction/goals/current-goals.txt"
 | 
			
		||||
alias note="cd $HOME_BOX/life/system/tasks/inbox; $EDITOR"
 | 
			
		||||
alias todo="cd $HOME_BOX/life/system/tasks; $EDITOR +5 todo.txt"
 | 
			
		||||
alias budget="open $HOME_BOX/life/finance/budget/.current"
 | 
			
		||||
alias life-system="cd $DIR_HOME_BOX/life/system; clear; ls"
 | 
			
		||||
alias goals="clear; sed -n 2,7p $DIR_HOME_BOX/life/system/direction/goals/current-goals.txt"
 | 
			
		||||
alias note="cd $DIR_HOME_BOX/life/system/tasks/inbox; $EDITOR"
 | 
			
		||||
alias todo="cd $DIR_HOME_BOX/life/system/tasks; $EDITOR +5 todo.txt"
 | 
			
		||||
alias budget="open $DIR_HOME_BOX/life/finance/budget/.current"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
set -o vi
 | 
			
		||||
 | 
			
		||||
# path updates
 | 
			
		||||
export PATH=$DIR_LOCAL/bin:$DIR_LOCAL/scripts:$PATH
 | 
			
		||||
export PATH=$DIR_BIN:$DIR_SCRIPTS:$PATH
 | 
			
		||||
export PATH=$PATH:/opt/homebrew/opt/ccache/libexec
 | 
			
		||||
export PATH=$PATH:~/bin/android-sdk-darwin/platform-tools:/opt/homebrew/opt/ccache/libexec
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user