Store Zsh Functions in Individual Files Inside a Directory

John Lindquist
InstructorJohn Lindquist
Share this video with your friends

Social Share Links

Send Tweet

Many people just drop all of their Zsh functions inside of their .zshrc and forget about it. But as your collection of functions begins to grow, you start looking for a better way to organize everything. Since Zsh provides autoload for loading in functions dynamically, we can drop all of our functions into individual files, loop through that directory, then autoload each file as a function.