From 632f8edf4ddad9b049dd6d31427e6fae1243c273 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:07:36 -0500 Subject: [PATCH] feat: Replace linuxbrew hook with Homebrew hook --- dot_profile => dot_profile.tmpl | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) rename dot_profile => dot_profile.tmpl (52%) diff --git a/dot_profile b/dot_profile.tmpl similarity index 52% rename from dot_profile rename to dot_profile.tmpl index 01f5e0d..035d52a 100644 --- a/dot_profile +++ b/dot_profile.tmpl @@ -7,18 +7,10 @@ export PATH="$HOME/.julia/bin:$PATH" export PATH="$HOME/.julia/juliaup/bin:$PATH" export PATH="$HOME/.juliaup/bin:$PATH" -# Linuxbrew setup -if [ -d $HOME/../linuxbrew/.linuxbrew ]; then - BREWPATH=$HOME/../linuxbrew/.linuxbrew -elif [ -d $HOME/.linuxbrew ]; then - 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 eq .chezmoi.os "darwin" }} +# Homebrew setup +eval "$(/opt/homebrew/bin/brew shellenv)" +{{ end }} if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . "$HOME/.nix-profile/etc/profile.d/nix.sh"