Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Store Zsh Functions in Individual Files Inside a Directory


    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.