How to add a directory to your PATH

42 · Julia Evans · Feb. 13, 2025, 7 p.m.
Summary
This blog post provides detailed instructions on how to add a directory to your system's PATH, accommodating different shell environments like bash, zsh, and fish. It discusses common pitfalls, shows how to identify the correct config files, and explains potential issues when running programs from the shell or other environments. The author emphasizes the importance of confirming the directory's correctness before updating the PATH and offers a practical solution for managing configurations.