TLDR Web Dev · ARTICLES & TUTORIALS
HOW TO ADD A DIRECTORY TO YOUR PATH
Summary from the TLDR Web Dev newsletter
This is a comprehensive guide on adding a directory to your shell's PATH environment variable. It goes over how to identify your shell, locate the correct configuration file, and determine the directory to add based on the program's installation location. While the process seems obvious at first, people commonly run into various “gotchas” that are detailed in this article, like running the wrong program version, duplicate PATH entries, and history loss after PATH updates.