Failed to execute MacPorts tab in Zsh

I get the following: MacPorts Bash tab in 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 `&&'

How can you execute the MacPorts tab in Zsh?

+5
source share
2 answers

You might want to try zsh completion for zsh. bash_completionfor Bash, oddly enough.

edit . It looks like you are probably looking for completion support for the team port. It looks like the MacPorts package zshhas an option +mp_completionthat will set the completion for the command port:

sudo port install zsh +mp_completion
+7
source

, , oh-my-zsh, OSX, , . A imho:)

+1

All Articles