Make a zsh function alias to enforce using yarn commands when in a yarn project

Elijah Manor
InstructorElijah Manor

Share this video with your friends

Send Tweet

When you or your team work on various npm or yarn projects it gets hard to remember which one is which. This lesson shows you how to create a custom npm zsh function alias to remind yourself to use yarn commands when there is a yarn.lock file in the directory.