Difference between revisions of "Brew --prefix"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
  
 
<code>brew --prefix [[ruby]]@2.7</code>
 
<code>brew --prefix [[ruby]]@2.7</code>
 +
 +
 +
 +
 +
To add gcloud components to your [[PATH]], add this to your profile:
 +
 +
  for bash users
 +
    [[source]] "$(brew --prefix)/share/google-cloud-sdk/path.bash.inc"
 +
 +
  for zsh users
 +
    source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc"
 +
    source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc"
 +
 +
  for fish users
 +
    source "$(brew --prefix)/share/google-cloud-sdk/path.fish.inc"
  
 
== Related ==
 
== Related ==

Revision as of 19:22, 4 December 2023

brew --prefix
/Users/your-user/brew

brew --prefix ruby@2.7



To add gcloud components to your PATH, add this to your profile:

  for bash users
    source "$(brew --prefix)/share/google-cloud-sdk/path.bash.inc" 

  for zsh users
    source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc"
    source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc"

  for fish users
    source "$(brew --prefix)/share/google-cloud-sdk/path.fish.inc"

Related

See also

Advertising: