How to set Path variables into mac Open terminal and hit following command vim ~/.zshrc Then Select proper option Read Only , Edit , Delete etc. Then Add required varible path Refer following varibles which is used for Android and iOS automation on macbook If VI is not working then hit following command and try commands again. export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"