Bash 自动完成功能不会转义空格,并且不会在 Ubuntu 11.4 中标记目录
我刚刚升级到 Ubuntu 11.4,并且我遇到了 Bash 自动完成的问题
,例如,如果我想 cd 到 Calibre Library 目录,当我键入时,
cd Cal<TAB>
自动
cd Calibre Library CURSOR
完成只会打印文件/目录名称,而不会转义空格或任何其他内容非字母数字字符,并且它不标记目录,这真的很烦人
我查看了 /etc/inputrc 甚至添加了
# append a '/' to show a dir is a dir
set mark-directories on
set mark-symlinked-directories on
但它没有帮助:(
I just upgraded to Ubuntu 11.4 and I'm having problems with Bash autocomplete
for example, if I want to cd to Calibre Library directory, when I type
cd Cal<TAB>
I get
cd Calibre Library CURSOR
the autocomplete just prints the file/directory name, without escaping the SPACE or any other non alphanumeric characters, and it doesn't mark directories, it is really annoying
I've looked through /etc/inputrc and even added
# append a '/' to show a dir is a dir
set mark-directories on
set mark-symlinked-directories on
but it doesn't help :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是由于 bash-completion 1.3 和 acroread 之间的冲突造成的。请参阅 http://forums.adobe.com/thread/745833 和 https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/716008 。解决方法是删除
/etc/bash_completion.d/acroread.sh
,然后执行。 /etc/bash_completion
.It is due to a conflict between bash-completion 1.3 and acroread. See http://forums.adobe.com/thread/745833 and https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/716008 . A workaround is removing
/etc/bash_completion.d/acroread.sh
, then execute. /etc/bash_completion
.