Add XDG Base Directory vars, refactor env var names and defs

This commit is contained in:
2025-01-26 21:00:13 -06:00
parent 743ee35605
commit 1f4c15c43d
8 changed files with 42 additions and 23 deletions

View File

@ -1,9 +1,16 @@
#!/bin/zsh
[[ ! -d $HOME/.config ]] && mkdir $HOME/.config
# source file where vars are defined
source ./src_files/.config/zsh/.zshenv
[[ ! -d $HOME/.local ]] && mkdir $HOME/.local
[[ ! -d $HOME/.local/bin ]] && mkdir $HOME/.local/bin
[[ ! -d $HOME/.local/build ]] && mkdir $HOME/.local/build
[[ ! -d $HOME/.local/scripts ]] && mkdir $HOME/.local/scripts
[[ ! -d $HOME/.local/tmp ]] && mkdir $HOME/.local/tmp
# any dirs made here should be defined in the file sourced above
[[ ! -d "$DIR_LOCAL" ]] && mkdir "$DIR_LOCAL"
[[ ! -d "$DIR_BIN" ]] && mkdir "$DIR_BIN"
[[ ! -d "$DIR_BUILD" ]] && mkdir "$DIR_BUILD"
[[ ! -d "$DIR_SCRIPTS" ]] && mkdir "$DIR_SCRIPTS"
[[ ! -d "$DIR_TMP" ]] && mkdir "$DIR_TMP"
[[ ! -d "$XDG_CONFIG_HOME" ]] && mkdir "$XDG_CONFIG_HOME"
[[ ! -d "$XDG_CACHE_HOME" ]] && mkdir "$XDG_CACHE_HOME"
[[ ! -d "$XDG_DATA_HOME" ]] && mkdir "$XDG_DATA_HOME"
[[ ! -d "$XDG_STATE_HOME" ]] && mkdir "$XDG_STATE_HOME"