Add Conditions to ZSH Functions to Prevent Mistakes

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Forgetting to pass an argument to a zsh function could result in creating unnecessary folders or cloning code you didn't mean to. It's best to check for arguments to prevent unwanted results.