我已经通过brew安装了zsh版本5.6.2。我在加载mapfile模块时遇到问题。
添加zmodload zsh/mapfile mapfile
会导致错误~/.zshrc:15: failed to load module 'mapfile': dlopen(/usr/local/Cellar/zsh/5.6.2_1/lib/mapfile.bundle, 9): image not found
任何人都知道如何调试此问题或修复程序吗?
答案 0 :(得分:1)
要加载zsh/mapfile
模块,只需运行
zmodload zsh/mapfile
您可以检查是否已正确加载:
zmodload
然后您将看到以下已加载模块的列表:
zsh/complete
zsh/main
zsh/mapfile
zsh/parameter
zsh/zle
zsh/zutil