Zsh completion script for Unity Hub on macOS

A previous post described the Unity Hub CLI. However, the CLI use too difficult without completion.

Introduction

I made zsh completion that is useful with Unity Hub CLI.

It's be in working progress, but developer could smoothly install Unity Editor on zsh.

./images/figure_01.gif

How to setup

_unityhub require alias unityhub. Please shoud set the below.

1
alias unityhub="/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless"