午夜指挥官(mc)子外壳中的提示不同

问题描述 投票:1回答:1

首先出现问题:与父外壳程序和我的tcsh环境相比,mc的子外壳程序具有不同的提示。所有其他设置/变量/别名在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&〜/ .config / mc中的tcshrc中。 这些位置似乎都没有在mc启动时进行评估。我既看不到提示更改,也看不到测试别名。
  • 已将.cshrc中的提示临时更改为非常简单的提示。 没有帮助。
  • 在mc的子外壳中即时更改提示确实可以临时起作用。因此,似乎提示字符串本身是可以理解的。

有人有想法吗?

prompt tcsh mc
1个回答
0
投票

尝试将带有提示设置的tcshrc放入〜/ .local / share / mc /目录。我无法通过tcsh进行验证,但是该位置对于mc中的bash子shell肯定适用(使用bashrc)。

© www.soinside.com 2019 - 2024. All rights reserved.