Parsing Arguments With Zparseopts in Zsh Functions

I’ve always been a little scared of zsh. Probably because JavaScript and writing cli tools in node.js has always been easier and more comfortable for me.

I ran into a situation where I needed to pass arguments into zsh so that I could forward them on to a node script, so I decided to take a day to really dive in and figure out how to make proper zsh functions. You can see the result in the video below.

Get Automation Tips in Your Inbox

Sign-up to get Automation tips sent directly to your inbox to improve your daily computer life!

    No spam. Unsubscribe whenever.