我将以下内容包含在
MacPorts’ Bash tab completion到Zsh中
/opt/local/etc/bash_completion:[:48: unrecognized condition: `2' [ -- cut -- ] /opt/local/etc/bash_completion:[:62: unrecognized condition: `2' /opt/local/etc/bash_completion:69: command not found: shopt [ -- cut -- ] /opt/local/etc/bash_completion:3015: command not found: complete /opt/local/etc/bash_completion:3062: parse error near `&&'
如何在Zsh中完成MacPorts的选项卡?
解决方法
你可能想尝试
zsh completion for zsh.令人惊讶的是,bash_completion适用于Bash.
编辑听起来你可能正在寻找port命令的完成支持.看起来MacPorts zsh包有一个mp_completion变种,它将为port命令安装完成:
sudo port install zsh +mp_completion