cmc/dotfiles

Using GNU Stow to manage my dotfiles. config dotfiles macos stow

Commit c3e1b1896a

c3e1b1896ab156f6fa1529ebd630b065eff42efa

parent: 35ed726fc2

Unsigned

cmc <hello@cleberg.net> · 2026-02-13 19:52 UTC

fix homebrew path and profile

Layout: unified · split

zsh/.zprofile +15 −1
@@ -1,2 +1,16 @@
1# ==============================================================================
2# HOMEBREW INITIALIZATION (macOS & Linux)
3# ==============================================================================
1 4
2eval "$(/opt/homebrew/bin/brew shellenv)" 5if [[ "$(uname)" == "Darwin" ]]; then
6 # macOS (Apple Silicon)
7 BREW_PATH="/opt/homebrew/bin/brew"
8elif [[ "$(uname)" == "Linux" ]]; then
9 # Linux (Linuxbrew)
10 BREW_PATH="/home/linuxbrew/.linuxbrew/bin/brew"
11fi
12
13# Only run shellenv if the brew binary actually exists at that path
14if [[ -f "$BREW_PATH" ]]; then
15 eval "$($BREW_PATH shellenv)"
16fi
zsh/.zshrc +1 −2
@@ -23,9 +23,8 @@ fi
23# 3. ENVIRONMENT VARIABLES & PATH 23# 3. ENVIRONMENT VARIABLES & PATH
24# ============================================================================== 24# ==============================================================================
25 25
26export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
27export PATH="$HOME/.local/xonsh-env/xbin:$PATH" 26export PATH="$HOME/.local/xonsh-env/xbin:$PATH"
28export PATH="$BREW_PREFIX:$PATH" 27export PATH="$BREW_PREFIX/bin:$PATH"
29export GPG_TTY=$(tty) 28export GPG_TTY=$(tty)
30 29
31# borgbackup 30# borgbackup