Skip to main content

All Questions

Tagged with
23 votes
2 answers
32k views

What does command eval "$(/opt/homebrew/bin/brew shellenv)" actually do?

Homebrew requires us to add eval $(/opt/homebrew/bin/brew shellenv) to ~/.zprofile. What does this actually evaluate to and what does this accomplish? I am a bit new to shell scripting. I know $var is ...
Osbridge's user avatar
  • 333
1 vote
1 answer
115 views

bash `if` block contents fail to execute due to syntax error on extended glob pattern in MacOS

Short Version: When extended glob is turned on inside a bash if block on my Mac, the entire block fails with a syntax error on any extend glob pattern contained in the block, even if it follows the ...
Arcticstar's user avatar
3 votes
1 answer
484 views

tmux configuration: command output substitution doesn't

I am trying to make parts of my .tmux.conf file conditional depending on the kind of system I'm on. For a start, I want one part to only be processed on MacOS. The man page says that I can use the #(...
q.undertow's user avatar
0 votes
1 answer
35 views

what `foo=bar programname` means [duplicate]

While developing a React app, I needed to use some environment variables. The way to do it is by using this syntax: REACT_APP_NOT_SECRET_CODE=abcdef npm start see reference My first question is: ...
YardenST's user avatar
  • 247