5

我最近开始在 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
4

1 回答 1

5

添加

setopt completealiases

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

于 2014-07-15T13:16:50.453 回答