This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to set default $PATH without adding Windows path?
- From: Al <oss dot elmar at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 29 Sep 2010 21:47:19 +0200
- Subject: Re: How to set default $PATH without adding Windows path?
- References: <29842033.post@talk.nabble.com>
2010/9/29 cygwindummy <liumrb@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