linux – TAB Completon和mc问题

linux – TAB Completon和mc问题,第1张

概述DISTRIB_ID=UbuntuDISTRIB_RELEASE=8.10DISTRIB_CODENAME=intrepidDISTRIB_DESCRIPTION="Ubuntu 8.10" 这是服务器版本. 当我进入它时,我遇到以下问题: 问题1 选项卡完成表现得很奇怪到无法使用: > cd ~/<press TAB>-sh: <( compgen -d -- '/home/dmitri
disTRIB_ID=UbuntudisTRIB_RELEASE=8.10disTRIB_CODEname=intrepIDdisTRIB_DESCRIPTION="Ubuntu 8.10"

这是服务器版本.

当我进入它时,我遇到以下问题:

问题1

选项卡完成表现得很奇怪到无法使用:

> cd ~/<press TAB>-sh: <( compgen -d -- '/home/dmitriID/' ): No such file or directory> vi ~/.<press TAB><( compgen -d -- '/home/dmitriID/.' ): No such file or directory-sh: <( eval compgen -f -X '*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' -- $(quote_readline $cur) ): No such file or directory> nano ~/.<press TAB>./              .bash_logout    .mc/            .viminfo../             .bashrc         .MysqL_history  .aptitude/      .erlang.cookie  .profile        .bash_history   .gitconfig      .ssh/

有办法解决这个问题吗?

问题2

我用了很多mc.我经常使用Ctrl O来隐藏面板并在shell中工作.就我而言:

> Ctrl O隐藏面板
>任何按键都会使面板恢复正常

有没有办法解决这个问题?

谢谢!

解决方法 好.事实证明,解决方案是愚蠢而简单的.关键是 – mc中没有交互式shell.

答案就在于:http://www.ibiblio.org/mc/FAQ

6.6 When I use Ctrl-O I don’t get a subshell. How do I fix this?

Only bash,tcsh and zsh can be used as subshell. Use one of those
shells as your default shell,and it will be used as subshell in GNU
MIDnight Commander.

所以我决定改变shell:

> which bash/bin/bash> sudo chsh -s /bin/bash my_user_name> grep ^my_user_name /etc/passwordmy_user_name:x:1002:1002::/home/my_user_name:/bin/bash

注意/ bin / bash在passwd文件的末尾.这意味着shell现在已经改变了.

我退出后再登录 – 瞧,一切正常!

总结

以上是内存溢出为你收集整理的linux – TAB Completon和mc问题全部内容,希望文章能够帮你解决linux – TAB Completon和mc问题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/1038813.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存