Execute a script in my zshrc?

535 views Asked by At

S want to execute a script in zshrc and write the output in a variable

VAR=$( /path/to/tool/tool -parameter)

is this possible in zsh?

1

There are 1 answers

0
Barmar On

Yes, command substitution works in zsh just like other POSIX shells. See this section of the documentation.