How to add a directory to your PATH

· 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.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →
BLOG POST FEATURED ON

Add this plugin to your blog