【发布时间】:2020-02-22 00:14:00
【问题描述】:
问题第一: 与父 shell 和我的 tcsh 环境相比, mc 的子 shell 有不同的提示。所有其他设置/变量/别名在 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 的子 shell 中即时更改提示确实暂时有效。看来,提示字符串本身是可以理解的。
有人有想法吗?
【问题讨论】: