Execute a script in my zshrc?

496 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 best solutions below

0
On

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