diff options
author | Alen <alen@dotfiles.xyz> | 2025-01-19 19:33:32 +0400 |
---|---|---|
committer | Alen <alen@dotfiles.xyz> | 2025-01-19 19:33:32 +0400 |
commit | 534899e2986732a569d15f231637447833a360b0 (patch) | |
tree | 8e2d1719ec9df2e0b17a867303892897122d7060 /dot_zshenv | |
parent | 81f3e6dcbf1913a2ba2a8f5fe2219b5206f270c0 (diff) |
Tidy up PATH bootstrapping, set up core brew PATHs in zshenv
Diffstat (limited to 'dot_zshenv')
-rw-r--r-- | dot_zshenv | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dot_zshenv b/dot_zshenv index 5d41124..0b222c7 100644 --- a/dot_zshenv +++ b/dot_zshenv @@ -73,3 +73,22 @@ export BAT_CONFIG_FILE="${XDG_CONFIG_HOME:-${HOME}/.config}/bat/config" # Brew config HOMEBREW_BUNDLE_FILE_GLOBAL="${XDG_CONFIG_HOME:-${HOME}/.config}/Brewfile" + +# Homebrew to PATH - also set in brew.plugin.zsh, but de-duped +export HOMEBREW_PREFIX=/opt/homebrew +if [[ -d "${HOMEBREW_PREFIX}/sbin" ]]; then + export PATH="${HOMEBREW_PREFIX}/sbin:${PATH}" +fi +if [[ -d "${HOMEBREW_PREFIX}/bin" ]]; then + export PATH="${HOMEBREW_PREFIX}/bin:${PATH}" +fi + +# JetBrains Toolbox to PATH +if [[ -d "${HOME}/Library/Application Support/JetBrains/Toolbox/scripts" ]]; then + export PATH="${PATH}:${HOME}/Library/Application Support/JetBrains/Toolbox/scripts" +fi + +# Rust to PATH +if [[ -d "${HOME}/.cargo/bin" ]]; then + export PATH="${PATH}:${HOME}/.cargo/bin" +fi |