首先是问题: mc 的子shell 与父shell 和我的tcsh 环境相比有不同的提示。所有其他设置/变量/别名都在 mc 的子外壳中可用,只是提示似乎没有正确“通过”。我不知道为什么会这样。手册页说:
An extra added feature of using the subshell is that the prompt displayed by the Midnight Commander is the same prompt that you are currently using in your shell.
背景: 我正在使用我自己在本地安装的 mc.4.8.23(因为没有 root 权限)。基本上做了这两个步骤:
./configure --prefix=<absolute path>/eda_tools/mc/mc-4.8.23/install --bindir=<absolute path>/eda_tools/mc/mc-4.8.23/bin --with-screen=ncurses
make install
mc 的其余部分工作正常。
到目前为止我已经尝试过:
- 将测试提示和测试别名放入 ~/.config/mc & ~/.mc & ~/.local/share/mc 内的 tcshrc。这些位置似乎都没有在 mc 启动时进行评估。我既看不到更改的提示,也看不到测试别名。
- 已将 .cshrc 中的提示暂时更改为非常简单的提示。没有帮助。
- 在 mc 的子外壳中即时更改提示确实暂时有效。看来,提示字符串本身是可以理解的。
有人有想法吗?