I would like to automatically have my Windows %PATH% variable converted to $PATH when I enter a cygwin shell (either bash or tcsh), so if I make a path change in Windows, it will automatically be added in my cygwin shell when I start it. Is there a way for the cygwin environment to access the Windows %PATH% variable?
In testing what I can do in my .cshrc file, I realized that upon my .cshrc file being executed, the $path and $PATH variables are set to what was in Windows %PATH%. So I saved this value to a temp variable, then setenv PATH
to the value of the temp var, plus additional cygwin bin dirs I desire.