I'm trying to compile wxWidgets using MingW, and I have cygwin in my path, which seems to conflict. So I would like to remove /d/Programme/cygwin/bin from the PATH variable and I wonder if there is some elegant way to do this.
The naive approach would be to echo it to a file, remove it manually and source it, but I bet there is better approach to this.