Skip to content

Commit

Permalink
chore: zsh brew sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed May 13, 2024
1 parent 9dce7a9 commit 45039ea
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions system_files/shared/usr/etc/zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@
#
# zmodload zsh/zprof

# Brew needs to be loaded before compinit is called
if [[ -o interactive ]] && [[ -d /home/linuxbrew/.linuxbrew ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
if type brew &>/dev/null; then
if [[ -w /home/linuxbrew/.linuxbrew ]]; then
if [[ ! -L "$(brew --prefix)/share/zsh/site-functions/_brew" ]]; then
brew completions link
fi
fi
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
fi
fi

# Load and initialize the completion system ignoring insecure directories with a
# cache time of 20 hours, so it should almost always regenerate the first time a
# shell is opened each day.
Expand Down Expand Up @@ -208,6 +195,18 @@ colors
# Sourcing
#####################

# Brew
if [[ -o interactive ]] && [[ -d /home/linuxbrew/.linuxbrew ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
if type brew &>/dev/null; then
if [[ -w /home/linuxbrew/.linuxbrew ]]; then
if [[ ! -L "$(brew --prefix)/share/zsh/site-functions/_brew" ]]; then
brew completions link
fi
fi
fi
fi

# Starship
if type "starship" > /dev/null; then
eval "$(starship init zsh)"
Expand Down

0 comments on commit 45039ea

Please sign in to comment.