summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2025-01-19 18:40:45 +0400
committerAlen <alen@dotfiles.xyz>2025-01-19 18:40:45 +0400
commit0ea577daadd7cfcd698402f21aa5231c1cd6c525 (patch)
treeb32f7a94918c410acd05cff191a4d5bc76d95d29
parentc2a95af8767d4aad217f51f0fc899c4ebbcaa5e0 (diff)
Fix XDG_CONFIG_HOME use, add HOMEBREW_BUNDLE_FILE_GLOBAL
-rw-r--r--dot_zshenv7
1 files changed, 5 insertions, 2 deletions
diff --git a/dot_zshenv b/dot_zshenv
index 6e35623..5d41124 100644
--- a/dot_zshenv
+++ b/dot_zshenv
@@ -29,7 +29,7 @@ export DIRSTACKSIZE=16
 # Set XDG_* path vars for better compat
 # https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
 # TODO: XDG_RUNTIME_DIR cleanup on logout
-[[ -v XDG_CONFIG_HONE ]] || export XDG_CONFIG_HOME=${HOME}/.config
+[[ -v XDG_CONFIG_HOME ]] || export XDG_CONFIG_HOME=${HOME}/.config
 [[ -v XDG_CACHE_HOME ]] || export XDG_CACHE_HOME=${HOME}/.cache
 [[ -v XDG_DATA_HOME ]] || export XDG_DATA_HOME=${HOME}/.local/share
 [[ -v XDG_STATE_HOME ]] || export XDG_STATE_HOME=${HOME}/.local/state
@@ -53,7 +53,7 @@ export PATH="${HOME}/.local/bin${PATH:+:${PATH}}"
 export MANPATH="${XDG_DATA_HOME:-${HOME}/.local/share}/man${MANPATH:+:${MANPATH}}"
 export INFOPATH="${XDG_DATA_HOME:-${HOME}/.local/share}/info${INFOPATH:+:${INFOPATH}}"
 fpath=(
-    "${ZDOTDIR:-${HOME}/.config/zsh}/functions"
+    "${ZDOTDIR:-${XDG_CONFIG_HOME:-${HOME}/.config}/zsh}/functions"
     "${XDG_DATA_HOME:-${HOME}/.local/share}/zsh/site-functions"
     $fpath
 )
@@ -70,3 +70,6 @@ export PIP_REQUIRE_VENV=1
 # Tool config
 export RIPGREP_CONFIG_PATH="${XDG_CONFIG_HOME:-${HOME}/.config}/ripgrep"
 export BAT_CONFIG_FILE="${XDG_CONFIG_HOME:-${HOME}/.config}/bat/config"
+
+# Brew config
+HOMEBREW_BUNDLE_FILE_GLOBAL="${XDG_CONFIG_HOME:-${HOME}/.config}/Brewfile"