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?
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?
Yes, command substitution works in zsh just like other POSIX shells. See this section of the documentation.