Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
S 想在 zshrc 中执行一个脚本并将输出写入一个变量
VAR=$( /path/to/tool/tool -parameter)
这在zsh中可能吗?
是的,命令替换在 zsh 中就像其他 POSIX shell 一样工作。请参阅文档的这一部分。