Learn how to add a directory to your PATH across different shells including bash, zsh, and fish. The guide covers identifying your shell, locating config files, specifying which directories to add, and troubleshooting common problems such as running incorrect program versions or using PATH in cron jobs.
•9m read time• From jvns.ca
Table of contents
step 1: what shell are you using?step 2: find your shell’s config filea note on bash’s config filestep 3: figure out which directory to addstep 3.1: double check it’s the right directorystep 4: edit your shell configstep 5: restart your shellproblem 1: it ran the wrong programproblem 2: the program isn’t being run from your shella note on sourcea note on fish_add_paththat’s all1 Comment
Sort: