Optional sources of zaw for Unity3d:
- unity
- install-unity
If you are using zplug, just add the code below in your .zshrc.
zplug "zsh-users/zaw"
zplug "GeneralD/zaw-src-unity-launcher", on:"zsh-users/zaw", on:"Tarrasch/zsh-functional", defer:2
zplug "Tarrasch/zsh-functional"
# if you don't add next line, necessary command will be installed automatically.
zplug "sttz/install-unity",\
as:command,\
use:'(*).py',\
rename-to:'$1',\
if:"[[ $OSTYPE == *darwin* ]]",\
hook-build:"pyenv versions --bare 2>/dev/null \
| gsort --version-sort --reverse \
| egrep '2.[0-9]+.[0-9]+' \
| head -n 1 \
> $ZPLUG_REPOS/sttz/install-unity/.python-version"For oh-my-zsh, clone this repo into ~/.oh-my-zsh/custom/plugins and add plugin as below.
plugins+=(zaw zaw-src-unity-launcher zsh-functional)Unity installed directory is /Applications as default. However, you can change the directory as below.
ZAW_UNITY_PATH=~/Developer/Unity_VersionsAbove setting can change the directory to open Unity version you select. However, it doesn't change the destination of install-unity.
- darwin
Currently, this compatible with only macOS.
- any nerd-font
This zaw source shows characters of nerd-font. You can search compatible font with,
brew cask search nerd-fontThen, install and set any nerd-font to your terminal application.
- python causes error
To fix the error, cd to directory install-unity.py exists, then run
pyenv local 2.7.xIf you are using pyenv and installed install-unity with zplug, hook-build part should fix it automatically.
