1
0
Fork 0
mirror of https://github.com/MillironX/dotfiles.git synced 2024-11-21 05:06:04 +00:00

Move linuxbrew to profile

This commit is contained in:
Thomas A. Christensen II 2021-08-24 20:16:48 -05:00
parent 3220e8c380
commit fa30464c6f
4 changed files with 15 additions and 5 deletions

13
dot_profile Normal file
View file

@ -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

1
dot_zprofile Normal file
View file

@ -0,0 +1 @@
source $HOME/.profile

View file

@ -0,0 +1 @@
source $HOME/.profile

View file

@ -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