ubuntu 14.04 apt / aptitude autocompletion与oh-my-zsh无法正常工作

时间:2014-06-02 23:59:58

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

我最近开始在Ubuntu 14.04服务器中使用带有oh-my-zsh的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

1 个答案:

答案 0 :(得分:5)

添加

setopt completealiases
加载oh-my-zsh之后

似乎可以解决问题。

相关问题