带有 oh-my-zsh 的 ubuntu 14.04 apt/aptitude 自动补全不工作

标签 ubuntu autocomplete zsh oh-my-zsh zsh-completion

我最近开始在 Ubuntu 14.04 服务器中使用 zsh 和 oh-my-zsh。问题是 debian 插件的自动完成不起作用,即

ai something<TAB>

不会自动完成。当然

aptitude install somethi<TAB>
apt-get install somethi<TAB>

正确地工作。 oh-my-zsh 的 git 插件也可以正常工作。

所以我开始想知道是否有人可以解决这个问题。

如果有人需要更多信息,这里有一些相关的包:

⇒  aps zsh completion
p   bash-completion                                           - programmable completion for the bash shell
v   bash-completion:i386                                      -
p   fatrat-czshare                                            - fatrat plugin allowing download and upload to czshare
p   fatrat-czshare:i386                                       - fatrat plugin allowing download and upload to czshare
p   fizsh                                                     - Friendly Interactive ZSHell
v   git-completion                                            -
v   git-completion:i386                                       -
v   ncmpcpp-completion                                        -
v   ncmpcpp-completion:i386                                   -
i   zsh                                                       - shell with lots of features
p   zsh:i386                                                  - shell with lots of features
p   zsh-beta                                                  - transitional package to zsh
p   zsh-beta-doc                                              - transitional package to zsh-doc
i A zsh-common                                                - architecture independent files for Zsh
p   zsh-dbg                                                   - shell with lots of features (debugging symbols)
p   zsh-dbg:i386                                              - shell with lots of features (debugging symbols)
p   zsh-dev                                                   - shell with lots of features (development files)
p   zsh-dev:i386                                              - shell with lots of features (development files)
i   zsh-doc                                                   - zsh documentation - info/HTML format
p   zsh-lovers                                                - tips, tricks and examples for the zsh
p   zsh-static                                                - shell with lots of features (static link)
p   zsh-static:i386                                           - shell with lots of features (static link)
p   zshdb                                                     - debugger for Z-Shell scripts

最佳答案

添加

setopt completealiases

加载 oh-my-zsh 后似乎可以解决问题。

关于带有 oh-my-zsh 的 ubuntu 14.04 apt/aptitude 自动补全不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24005133/

相关文章:

Ubuntu安装IntelliJIDEA(Spark的运行环境)

elasticsearch - _all上的 Elasticsearch edge_ngram匹配查询被忽略

linux - 如何在 zsh 环境中运行 ssh-agent auto?

.net - Dotnet Nuget/package 文件夹非常大并且对于每个用户

linux - Proftpd 完全隐藏目录

autocomplete - 禁用 Atom 中的单个自动完成功能

bash - 我怎样才能在 zsh 中暂停?

c - 当 'zsh' shell 运行 "cat < 11 < 22 < 33 > 55 > 66"时,它使用什么算法?

python - Ansible 设置模块失败

php - 自动完成不返回搜索到的值,但它返回所有值(在 PHP、jQuery 中)