I installed Cygwin on my Windows XP machine. How can I add
c:\cygwin\bin to the
%PATH% in such a way that it persists?
autoexec.bat is empty, and I assume it's no longer the right place for that. Where's the best place to do this?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Right click on my computer and select properties. In the Advanced tab, there is a button called Environment Variables. The
PATH variable is in there, just add a semicolon and then the cygwin path to the end of the existing value, so it looks like this:
To add to your user profile path you can do the following from the command line using the
setx command which is built into Windows Vista and above. In earlier versions of Windows you can use the Windows Resource Kit to get it.
Say Cygwin in installed in
SETX path c:\cygwin;c:\cygwin\bin;%path%
Or for you, as user only:
SETX -m path c:\cygwin;c:\cygwin\bin;%path%