【发布时间】:2012-08-12 11:36:44
【问题描述】:
如果完成目标是多级文件夹中的文件,则 Bash 选项卡完成会在第一次完成后停止进一步完成。
例如,我在路径~/Documents/foo/bar.txt 中有一个文件,我想列出它。 输入时遇到以下问题
a@b:~$ls Docu <TAB>
我明白了
a@b:~$ls Documents |(<-this is the cursor, so there is an extra space afer Documents)
所以我不能进一步完成标签。我必须退格来删除多余的空间。
通常我想得到:
a@b:~$ls Docu <TAB>
a@b:~$ls Documents/ <TAB>
a@b:~$ls Documents/foo/ <TAB>
a@b:~$ls Documents/foo/bar.txt
【问题讨论】:
-
这太烦人了gggggggg。 Ubuntu上似乎有一个错误bugs.launchpad.net/ubuntu/+source/acroread/+bug/769866
标签: bash tab-completion