Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set brew environment variables with eval (brew shellenv) #8

Open
simonrouse9461 opened this issue May 15, 2019 · 0 comments
Open

Set brew environment variables with eval (brew shellenv) #8

simonrouse9461 opened this issue May 15, 2019 · 0 comments

Comments

@simonrouse9461
Copy link

simonrouse9461 commented May 15, 2019

Setting up brew environment isn't just about setting the path. Homebrew has a command brew shellenv for configuring all the environment variables need to be set.

Here is what brew shellenv returns

set -gx HOMEBREW_PREFIX "/usr/local";
set -gx HOMEBREW_CELLAR "/usr/local/Cellar";
set -gx HOMEBREW_REPOSITORY "/usr/local/Homebrew";
set -g fish_user_paths "/usr/local/bin" "/usr/local/sbin" $fish_user_paths;
set -q MANPATH; or set MANPATH ''; set -gx MANPATH "/usr/local/share/man" $MANPATH;
set -q INFOPATH; or set INFOPATH ''; set -gx INFOPATH "/usr/local/share/info" $INFOPATH;

So for complete brew integration, eval ($HOMEBREW_BIN shellenv) need to be added to the beginning of the script, where $HOMEBREW_BIN has a default value of "/usr/local/bin/brew", but can be overridden by the user in "before.init.fish" in the omf configuration path.

@simonrouse9461 simonrouse9461 changed the title Set brew environment variables with eval (/usr/local/bin/brew shellenv) Set brew environment variables with eval (brew shellenv) May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant