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.
在尝试评估文件时,我在完全有效的///脚本中.envrc收到错误“ emulate: command not found”或“ cd: -q: invalid option”或任意数量的各种可能错误。zshfishelivshtcsh
.envrc
emulate: command not found
cd: -q: invalid option
zsh
fish
elivsh
tcsh
direnv仅bash用于评估您的.envrc文件。然后它将更改导出回您的原始外壳。你必须重写你的.envrcin bash。
direnv
bash
还要检查可让您从任何文件中访问direnv stdlib的实用程序功能。direnv.envrc
direnv stdlib