mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-23 22:09:55 +00:00
feat: Replace linuxbrew hook with Homebrew hook
This commit is contained in:
parent
dc626c4ed9
commit
632f8edf4d
1 changed files with 4 additions and 12 deletions
|
@ -7,18 +7,10 @@ export PATH="$HOME/.julia/bin:$PATH"
|
||||||
export PATH="$HOME/.julia/juliaup/bin:$PATH"
|
export PATH="$HOME/.julia/juliaup/bin:$PATH"
|
||||||
export PATH="$HOME/.juliaup/bin:$PATH"
|
export PATH="$HOME/.juliaup/bin:$PATH"
|
||||||
|
|
||||||
# Linuxbrew setup
|
{{ if eq .chezmoi.os "darwin" }}
|
||||||
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then
|
# Homebrew setup
|
||||||
BREWPATH=$HOME/../linuxbrew/.linuxbrew
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
elif [ -d $HOME/.linuxbrew ]; then
|
{{ end }}
|
||||||
BREWPATH=$HOME/.linuxbrew
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$BREWPATH" ]; then
|
|
||||||
eval "$($BREWPATH/bin/brew shellenv)"
|
|
||||||
export HOMEBREW_MAKE_JOBS=1
|
|
||||||
export HOMEBREW_NO_ANALYTICS=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
Loading…
Reference in a new issue