From 0ea577daadd7cfcd698402f21aa5231c1cd6c525 Mon Sep 17 00:00:00 2001 From: Alen Date: Sun, 19 Jan 2025 18:40:45 +0400 Subject: Fix XDG_CONFIG_HOME use, add HOMEBREW_BUNDLE_FILE_GLOBAL --- dot_zshenv | 7 +++++-- 1 file 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" -- cgit 1.4.1-2-gfad0