Skip to content

Commit 6cef59c

Browse files
Refactor shell profiles by removing Homebrew initialization from .profile and adding it to .zshrc for better environment management across shell types.
1 parent c38d358 commit 6cef59c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

common/sh/.profile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
export LANG="en_US.UTF-8"
77
export MANPATH="/usr/local/man${MANPATH:+:${MANPATH}}"
88

9-
# Homebrew (Linuxbrew) environment
10-
if [ -x /home/linuxbrew/.linuxbrew/bin/brew ]; then
11-
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
12-
fi
13-
149
# CUDA setup
1510
if [ -d /usr/local/cuda/bin ]; then
1611
export PATH="/usr/local/cuda/bin:$PATH"

common/zsh/.zshrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ plugins=(
117117
zoxide
118118
)
119119

120+
# Homebrew (Linuxbrew) environment
121+
if [[ -x /home/linuxbrew/.linuxbrew/bin/brew ]]; then
122+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
123+
fi
124+
120125
# Host-specific interactive config (plugins, fpath filters, etc.)
121126
if [[ -r "$HOME/.config/zsh/.zshrc" ]]; then
122127
source "$HOME/.config/zsh/.zshrc"

0 commit comments

Comments
 (0)