X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <29842033.post@talk.nabble.com> References: <29842033 DOT post AT talk DOT nabble DOT com> Date: Wed, 29 Sep 2010 21:47:19 +0200 Message-ID: Subject: Re: How to set default $PATH without adding Windows path? From: Al To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2010/9/29 cygwindummy : > > 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