mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-21 13:16:04 +00:00
Move linuxbrew to profile
This commit is contained in:
parent
3220e8c380
commit
fa30464c6f
4 changed files with 15 additions and 5 deletions
13
dot_profile
Normal file
13
dot_profile
Normal 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
1
dot_zprofile
Normal file
|
@ -0,0 +1 @@
|
|||
source $HOME/.profile
|
1
executable_dot_bash_profile
Normal file
1
executable_dot_bash_profile
Normal file
|
@ -0,0 +1 @@
|
|||
source $HOME/.profile
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue