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