Cygwin startup environment variables

Cygwin startup configuration can be easily modified. While advanced users might modify the Windows CYGWIN environment variable, typical needs can be handled from within Cygwin ~/.bashrc or from other Windows environment variables.

A typical need is to not populate Cygwin PATH from Windows PATH. This is something we typically do to avoid confusion from Windows programs being used instead of Cygwin programs. To do this, set Windows environment variable:

CYGWIN_NOWINPATH=1

This will result in a basic Cygwin PATH like:

/usr/local/bin:/usr/bin

More options

Look inside Cygwin “/etc/config” file for more environment variables that may be of interest.

Don’t populate WSL PATH from Windows PATH.