From fa30464c6fd367c629d7f197e468227572cd7755 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 24 Aug 2021 20:16:48 -0500 Subject: [PATCH] Move linuxbrew to profile --- dot_profile | 13 +++++++++++++ dot_zprofile | 1 + executable_dot_bash_profile | 1 + executable_dot_zshrc | 5 ----- 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 dot_profile create mode 100644 dot_zprofile create mode 100644 executable_dot_bash_profile diff --git a/dot_profile b/dot_profile new file mode 100644 index 0000000..d386818 --- /dev/null +++ b/dot_profile @@ -0,0 +1,13 @@ +# 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 + if [[ "$SHELL" =~ "zsh" ]]; then + export fpath+=($BREWPATH/share/zsh/site-functions) + fi + eval "$($BREWPATH/bin/brew shellenv)" +fi diff --git a/dot_zprofile b/dot_zprofile new file mode 100644 index 0000000..70bd631 --- /dev/null +++ b/dot_zprofile @@ -0,0 +1 @@ +source $HOME/.profile diff --git a/executable_dot_bash_profile b/executable_dot_bash_profile new file mode 100644 index 0000000..70bd631 --- /dev/null +++ b/executable_dot_bash_profile @@ -0,0 +1 @@ +source $HOME/.profile diff --git a/executable_dot_zshrc b/executable_dot_zshrc index 1abf837..4dd8c59 100644 --- a/executable_dot_zshrc +++ b/executable_dot_zshrc @@ -80,11 +80,6 @@ unset __conda_setup eval "$(direnv hook zsh)" # <<< direnv initalize <<< -# >>> homebrew initalize >>> -export fpath=(/home/linuxbrew/.linuxbrew/share/zsh/site-functions $fpath) -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" -# <<< homebrew initalize <<< - # Tell Antigen that you're done antigen apply