As a developer you will often install random things onto your computer and hope that they magically work when you execute them from a command prompt. Most package managers on Linux, BSD, Unix, and will install things that are already in your PATH so life is simple. On Windows its slightly a different story.
Just like in the other operating systems listed above you can add any arbitrary directory to your windows PATH. The strategy that I came up with was making a folder called C:\DevTools and then any time I need to install any library or command line utility (like nuget) that needs to be in my path, I will simply plop it in that folder and everything will just work.
The detailed process is outlined below. In this guide, I am assuming that you want to follow my convention of using a folder called C:\DevTools for all the things. Keep in mind you can add anything that you wish to your PATH using the same steps.
- Open up Documents, right click on This PC and select Properties
- On the left hand side of this Window, select Advanced System Settings
- At the bottom of this window, select Environment Variables…
- Select Path and then Select Edit…
;C:\Devtools;to the Path variable and select OK.
At this point everything inside of this folder will be in your PATH and you will be able to execute anything inside of this folder from the command line.
If you made it this far, you should probably follow me on twitter. 🙂 Follow @levlaz