macos – 无法在Zsh中完成MacPorts的选项卡

前端之家收集整理的这篇文章主要介绍了macos – 无法在Zsh中完成MacPorts的选项卡前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我将以下内容包含在 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

猜你在找的Linux相关文章