2010/9/29 cygwindummy <liu...@gmail.com>: > > Cygwin and Cygwin-X terminals always have default $PATH containing all the > Windows paths. This gives many problems both in the terminals running > command line commands and also NetBeans IDE. How to change the default $PATH > so it does not contain any Windows paths? i.e. just > /usr/local/bin:/usr/bin:/bin
Permanently for the whole system echo "PATH=/usr/local/bin:/usr/bin:/bin" >> /etc/profile && source /etc/profile Permanently for one user: echo "PATH=/usr/local/bin:/usr/bin:/bin" >> ~/.bashrc && source ~/.bashrc Temporary for a single program start: env PATH=/usr/local/bin:/usr/bin:/bin netbeans.exe Permanetly for one program: echo "export PATH=/usr/local/bin:/usr/bin:/bin" >> netbeans-starter.bsh echo "netbeans.exe" >> netbeans-starter.bsh chmod +x netbeans-starter.bsh Adapt the names to your needs. Al -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple