mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-13 00:34:22 +08:00
fix(brew): do not source brew shellenv if already on path (#11167)
This commit is contained in:
1 parent
34cd8fbd4a
commit
c7c0a8917b
2 files changed
+14
-8
No files matched your search
@@ -10,7 +10,10 @@ plugins=(... brew)
|
||||
|
||||
## Shellenv
|
||||
|
||||
This plugin also executes `brew shellenv` at plugin load to set up many useful variables, such as `HOMEBREW_PREFIX` or `HOMEBREW_REPOSITORY`.
|
||||
If `brew` is not found in the PATH, this plugin will attempt to find it in common
|
||||
locations, and execute `brew shellenv` to set the environment appropriately.
|
||||
This plugin will also export `HOMEBREW_PREFIX="$(brew --prefix)"` if not previously
|
||||
defined for convenience.
|
||||
|
||||
## Aliases
|
||||
|
||||
|
||||
Reference in new issue
Block a user