Modify Path in Cygwin

Here’s how to add to your path in a Cygwin session:

  1. Go to your $HOME directory, then
    vi .profile
  2. Enter the following: PATH=(add your path entries here):$PATH export PATH
  3. Save the .profile.
  4. Exit your bash session, and run it again.